diff options
| author | Bruce Momjian | 2003-12-20 17:31:21 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2003-12-20 17:31:21 +0000 |
| commit | d75b2ec4ebbc7fdb51088e89da47c6523bf2c640 (patch) | |
| tree | 4f0a12508b01da4d98c663bbdadb4a2e1ae6837a /src/include/libpq | |
| parent | 1ee0ddf91df31669ca0d07871d3f5aa88791b78d (diff) | |
This patch is the next step towards (re)allowing fork/exec.
Claudio Natoli
Diffstat (limited to 'src/include/libpq')
| -rw-r--r-- | src/include/libpq/libpq-be.h | 8 |
1 files changed, 7 insertions, 1 deletions
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 |
