From 9cbaf7217747d6b5c88ba9b500a37b8372f185c9 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 25 Apr 2003 19:45:10 +0000 Subject: 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.) --- src/include/commands/variable.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/include/commands/variable.h') diff --git a/src/include/commands/variable.h b/src/include/commands/variable.h index 73687178fe8..68a0ebf7450 100644 --- a/src/include/commands/variable.h +++ b/src/include/commands/variable.h @@ -2,7 +2,7 @@ * variable.h * Routines for handling specialized SET variables. * - * $Id: variable.h,v 1.19 2002/09/04 20:31:42 momjian Exp $ + * $Id: variable.h,v 1.20 2003/04/25 19:45:09 tgl Exp $ * */ #ifndef VARIABLE_H @@ -22,9 +22,6 @@ extern bool assign_random_seed(double value, extern const char *show_random_seed(void); extern const char *assign_client_encoding(const char *value, bool doit, bool interactive); -extern const char *assign_server_encoding(const char *value, - bool doit, bool interactive); -extern const char *show_server_encoding(void); extern const char *assign_session_authorization(const char *value, bool doit, bool interactive); extern const char *show_session_authorization(void); -- cgit v1.2.3