From 5f65345a5711db5067664b08fb810b1a388b485d Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 1 Sep 2003 23:04:49 +0000 Subject: Do not pass server_encoding to the client. libpq, talking to an old server, should assume SQL_ASCII as the default client encoding, because that is what the server will actually use (not the server encoding). --- doc/src/sgml/libpq.sgml | 19 +++++++++---------- doc/src/sgml/protocol.sgml | 3 +-- 2 files changed, 10 insertions(+), 12 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index debfa26b727..fd06b51905c 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -1,5 +1,5 @@ @@ -856,21 +856,20 @@ is not known. Parameters reported as of the current release include server_version (cannot change after startup); -server_encoding (also not presently changeable after start); client_encoding, is_superuser, and DateStyle. -Pre-3.0-protocol servers do not report parameter settings, -but libpq includes logic to obtain values for -server_version, server_encoding, and -client_encoding. Applications are encouraged to use -PQparameterStatus rather than ad-hoc code to determine these -values. (Beware however that on a pre-3.0 connection, changing -client_encoding via SET after connection startup -will not be reflected by PQparameterStatus.) +Pre-3.0-protocol servers do not report parameter settings, but +libpq includes logic to obtain values for +server_version, and client_encoding. +Applications are encouraged to use PQparameterStatus +rather than ad-hoc code to determine these values. (Beware however +that on a pre-3.0 connection, changing client_encoding via +SET after connection startup will not be reflected by +PQparameterStatus.) diff --git a/doc/src/sgml/protocol.sgml b/doc/src/sgml/protocol.sgml index 1de14ddeb61..5127bd66d52 100644 --- a/doc/src/sgml/protocol.sgml +++ b/doc/src/sgml/protocol.sgml @@ -1,4 +1,4 @@ - + Frontend/Backend Protocol @@ -1005,7 +1005,6 @@ ParameterStatus will be generated: they are server_version (a pseudo-parameter that cannot change after startup); - server_encoding (also not presently changeable after start); client_encoding, is_superuser, and DateStyle. -- cgit v1.2.3