mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
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.)
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.73 2003/02/01 18:31:28 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.74 2003/04/25 19:45:08 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -500,22 +500,6 @@ assign_client_encoding(const char *value, bool doit, bool interactive)
|
||||
}
|
||||
|
||||
|
||||
const char *
|
||||
assign_server_encoding(const char *value, bool doit, bool interactive)
|
||||
{
|
||||
if (interactive)
|
||||
elog(ERROR, "SET SERVER_ENCODING is not supported");
|
||||
/* Pretend never to fail in noninteractive case */
|
||||
return value;
|
||||
}
|
||||
|
||||
const char *
|
||||
show_server_encoding(void)
|
||||
{
|
||||
return GetDatabaseEncodingName();
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* SET SESSION AUTHORIZATION
|
||||
*
|
||||
|
Reference in New Issue
Block a user