summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2003-09-01 23:04:49 +0000
committerPeter Eisentraut <peter_e@gmx.net>2003-09-01 23:04:49 +0000
commit5f65345a5711db5067664b08fb810b1a388b485d (patch)
tree9b37fe18cdec8490b935486066bc7fbddf0623a5 /doc/src
parentf10a9033bf308f9dde0aa77caad6503e233489d1 (diff)
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).
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/libpq.sgml19
-rw-r--r--doc/src/sgml/protocol.sgml3
2 files changed, 10 insertions, 12 deletions
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 @@
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.133 2003/08/31 17:32:19 petere Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.134 2003/09/01 23:04:49 petere Exp $
-->
<chapter id="libpq">
@@ -856,21 +856,20 @@ is not known.
<para>
Parameters reported as of the current release include
<literal>server_version</> (cannot change after startup);
-<literal>server_encoding</> (also not presently changeable after start);
<literal>client_encoding</>,
<literal>is_superuser</>, and
<literal>DateStyle</>.
</para>
<para>
-Pre-3.0-protocol servers do not report parameter settings,
-but <application>libpq</> includes logic to obtain values for
-<literal>server_version</>, <literal>server_encoding</>, and
-<literal>client_encoding</>. Applications are encouraged to use
-<function>PQparameterStatus</> rather than ad-hoc code to determine these
-values. (Beware however that on a pre-3.0 connection, changing
-<literal>client_encoding</> via <command>SET</> after connection startup
-will not be reflected by <function>PQparameterStatus</>.)
+Pre-3.0-protocol servers do not report parameter settings, but
+<application>libpq</> includes logic to obtain values for
+<literal>server_version</>, and <literal>client_encoding</>.
+Applications are encouraged to use <function>PQparameterStatus</>
+rather than ad-hoc code to determine these values. (Beware however
+that on a pre-3.0 connection, changing <literal>client_encoding</> via
+<command>SET</> after connection startup will not be reflected by
+<function>PQparameterStatus</>.)
</para>
</listitem>
</varlistentry>
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 @@
-<!-- $Header: /cvsroot/pgsql/doc/src/sgml/protocol.sgml,v 1.41 2003/08/14 20:09:31 tgl Exp $ -->
+<!-- $Header: /cvsroot/pgsql/doc/src/sgml/protocol.sgml,v 1.42 2003/09/01 23:04:49 petere Exp $ -->
<chapter id="protocol">
<title>Frontend/Backend Protocol</title>
@@ -1005,7 +1005,6 @@
ParameterStatus will be generated: they are
<literal>server_version</> (a pseudo-parameter that cannot change after
startup);
- <literal>server_encoding</> (also not presently changeable after start);
<literal>client_encoding</>,
<literal>is_superuser</>, and
<literal>DateStyle</>.