From d75b2ec4ebbc7fdb51088e89da47c6523bf2c640 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sat, 20 Dec 2003 17:31:21 +0000 Subject: This patch is the next step towards (re)allowing fork/exec. Claudio Natoli --- src/include/libpq/libpq-be.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/include/libpq') diff --git a/src/include/libpq/libpq-be.h b/src/include/libpq/libpq-be.h index a7dc475f570..f011afed86d 100644 --- a/src/include/libpq/libpq-be.h +++ b/src/include/libpq/libpq-be.h @@ -11,7 +11,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/libpq/libpq-be.h,v 1.38 2003/11/29 22:41:03 pgsql Exp $ + * $PostgreSQL: pgsql/src/include/libpq/libpq-be.h,v 1.39 2003/12/20 17:31:21 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -27,6 +27,11 @@ #endif +typedef enum CAC_state +{ + CAC_OK, CAC_STARTUP, CAC_SHUTDOWN, CAC_RECOVERY, CAC_TOOMANY +} CAC_state; + /* * This is used by the postmaster in its communication with frontends. It * contains all state information needed during this communication before the @@ -42,6 +47,7 @@ typedef struct Port ProtocolVersion proto; /* FE/BE protocol version */ SockAddr laddr; /* local addr (postmaster) */ SockAddr raddr; /* remote addr (client) */ + CAC_state canAcceptConnections; /* postmaster connection status */ /* * Information that needs to be saved from the startup packet and -- cgit v1.2.3