diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-04-25 19:45:10 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-04-25 19:45:10 +0000 |
commit | 9cbaf7217747d6b5c88ba9b500a37b8372f185c9 (patch) | |
tree | 18569f5cba46f81d9097c9ea21c29f4a0e055936 /src/interfaces/libpq/libpq-int.h | |
parent | a2190c9eb6afc65fddb80667d48024428368a9b6 (diff) | |
download | postgresql-9cbaf7217747d6b5c88ba9b500a37b8372f185c9.tar.gz postgresql-9cbaf7217747d6b5c88ba9b500a37b8372f185c9.zip |
In the continuing saga of FE/BE protocol revisions, add reporting of
initial values and runtime changes in selected parameters. This gets
rid of the need for an initial 'select pg_client_encoding()' query in
libpq, bringing us back to one message transmitted in each direction
for a standard connection startup. To allow server version to be sent
using the same GUC mechanism that handles other parameters, invent the
concept of a never-settable GUC parameter: you can 'show server_version'
but it's not settable by any GUC input source. Create 'lc_collate' and
'lc_ctype' never-settable parameters so that people can find out these
settings without need for pg_controldata. (These side ideas were all
discussed some time ago in pgsql-hackers, but not yet implemented.)
Diffstat (limited to 'src/interfaces/libpq/libpq-int.h')
-rw-r--r-- | src/interfaces/libpq/libpq-int.h | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/interfaces/libpq/libpq-int.h b/src/interfaces/libpq/libpq-int.h index 4688fbf8f5a..12670f3a0a4 100644 --- a/src/interfaces/libpq/libpq-int.h +++ b/src/interfaces/libpq/libpq-int.h @@ -12,7 +12,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: libpq-int.h,v 1.64 2003/04/24 21:16:44 tgl Exp $ + * $Id: libpq-int.h,v 1.65 2003/04/25 19:45:10 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -56,7 +56,7 @@ typedef int ssize_t; /* ssize_t doesn't exist in VC (atleast * pqcomm.h describe what the backend knows, not what libpq knows. */ -#define PG_PROTOCOL_LIBPQ PG_PROTOCOL(3,103) /* XXX temporary value */ +#define PG_PROTOCOL_LIBPQ PG_PROTOCOL(3,104) /* XXX temporary value */ /* * POSTGRES backend dependent Constants. @@ -194,14 +194,6 @@ typedef enum PGASYNC_COPY_OUT /* Copy Out data transfer in progress */ } PGAsyncStatusType; -/* PGSetenvStatusType defines the state of the PQSetenv state machine */ -typedef enum -{ - SETENV_STATE_ENCODINGS_SEND, /* About to send an "encodings" query */ - SETENV_STATE_ENCODINGS_WAIT, /* Waiting for query to complete */ - SETENV_STATE_IDLE -} PGSetenvStatusType; - /* large-object-access data ... allocated only if large-object code is used. */ typedef struct pgLobjfuncs { @@ -293,9 +285,6 @@ struct pg_conn PGresult *result; /* result being constructed */ PGresAttValue *curTuple; /* tuple currently being read */ - /* Status for sending environment info. Used during PQSetenv only. */ - PGSetenvStatusType setenv_state; - #ifdef USE_SSL bool allow_ssl_try; /* Allowed to try SSL negotiation */ bool require_ssl; /* Require SSL to make connection */ |