aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTatsuo Ishii <ishii@postgresql.org>2001-10-12 02:08:34 +0000
committerTatsuo Ishii <ishii@postgresql.org>2001-10-12 02:08:34 +0000
commitf426465ba911051fa9fce57c7c4b49350e9dbbd3 (patch)
tree29eabd6b837d08d0eb67ca81fd41b26df7b16b7e /doc/src
parent9d13fcf0af024b0ce9bc344a758c6b4072e50e95 (diff)
downloadpostgresql-f426465ba911051fa9fce57c7c4b49350e9dbbd3.tar.gz
postgresql-f426465ba911051fa9fce57c7c4b49350e9dbbd3.zip
Add a new function "pg_client_encoding" which returns the current client
side encoding name. This is necessary for client API's such as JDBC to perform correct encoding conversions. See my email "[HACKERS] pg_client_encoding" 10 Sep 2001.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/func.sgml12
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 334a8a9ee59..3cbd8cdf6b5 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -1,4 +1,4 @@
-<!-- $Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.77 2001/10/10 00:02:42 petere Exp $ -->
+<!-- $Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.78 2001/10/12 02:08:34 ishii Exp $ -->
<chapter id="functions">
<title>Functions and Operators</title>
@@ -1009,6 +1009,16 @@
</row>
<row>
+ <entry><function>pg_client_encoding</function>()</entry>
+ <entry><type>name</type></entry>
+ <entry>
+ Returns current client encoding name.
+ </entry>
+ <entry><literal>pg_client_encoding()</literal></entry>
+ <entry><literal>SQL_ASCII</literal></entry>
+ </row>
+
+ <row>
<entry><function>repeat</function>(<type>text</type>, <type>integer</type>)</entry>
<entry><type>text</type></entry>
<entry>Repeat text a number of times.</entry>