aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2011-02-06 17:29:26 -0500
committerAndrew Dunstan <andrew@dunslane.net>2011-02-06 17:29:26 -0500
commit50d89d422f9c68a52a6964e5468e8eb4f90b1d95 (patch)
tree88b3bced2c0e54c12241b60853e33811079f9ce2 /doc/src
parent5ed45ac09c604555740e7365a722b641f3bce498 (diff)
downloadpostgresql-50d89d422f9c68a52a6964e5468e8eb4f90b1d95.tar.gz
postgresql-50d89d422f9c68a52a6964e5468e8eb4f90b1d95.zip
Force strings passed to and from plperl to be in UTF8 encoding.
String are converted to UTF8 on the way into perl and to the database encoding on the way back. This avoids a number of observed anomalies, and ensures Perl a consistent view of the world. Some minor code cleanups are also accomplished. Alex Hunsaker, reviewed by Andy Colson.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/plperl.sgml8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/src/sgml/plperl.sgml b/doc/src/sgml/plperl.sgml
index dd8695834fe..4150998808c 100644
--- a/doc/src/sgml/plperl.sgml
+++ b/doc/src/sgml/plperl.sgml
@@ -125,6 +125,14 @@ $$ LANGUAGE plperl;
</programlisting>
</para>
+ <note>
+ <para>
+ Arguments will be converted from the database's encoding to UTF-8
+ for use inside plperl, and then converted from UTF-8 back to the
+ database encoding upon return.
+ </para>
+ </note>
+
<para>
If an SQL null value<indexterm><primary>null value</><secondary
sortas="PL/Perl">in PL/Perl</></indexterm> is passed to a function,