aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2005-05-30 15:24:23 +0000
committerBruce Momjian <bruce@momjian.us>2005-05-30 15:24:23 +0000
commita2cce84349d9555e04d3f38343efeed4aa99f0d2 (patch)
treef0ee0268471387b16223739b7518060c284925bd
parentf13c132072fe39ecbabf662c440216d9ef74c9c4 (diff)
downloadpostgresql-a2cce84349d9555e04d3f38343efeed4aa99f0d2.tar.gz
postgresql-a2cce84349d9555e04d3f38343efeed4aa99f0d2.zip
Update psql docs for recent octal-only string behavior.
-rw-r--r--doc/src/sgml/ref/psql-ref.sgml16
1 files changed, 4 insertions, 12 deletions
diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml
index 34325b1454d..55c160e91cf 100644
--- a/doc/src/sgml/ref/psql-ref.sgml
+++ b/doc/src/sgml/ref/psql-ref.sgml
@@ -1,5 +1,5 @@
<!--
-$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.136 2005/05/29 03:32:18 momjian Exp $
+$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.137 2005/05/30 15:24:23 momjian Exp $
PostgreSQL documentation
-->
@@ -589,11 +589,8 @@ testdb=&gt;
single quote. To include a single quote into such an argument,
precede it by a backslash. Anything contained in single quotes is
furthermore subject to C-like substitutions for
- <literal>\n</literal> (new line), <literal>\t</literal> (tab),
- <literal>\</literal><replaceable>digits</replaceable>,
- <literal>\0</literal><replaceable>digits</replaceable>, and
- <literal>\0x</literal><replaceable>digits</replaceable> (the
- character with the given decimal, octal, or hexadecimal code).
+ <literal>\n</literal> (new line), <literal>\t</literal> (tab), and
+ <literal>\</literal><replaceable>digits</replaceable> (octal).
</para>
<para>
@@ -2367,12 +2364,7 @@ testdb=&gt; <userinput>\set content '\'' `sed -e "s/'/\\\\\\'/g" &lt; my_file.tx
<term><literal>%</literal><replaceable class="parameter">digits</replaceable></term>
<listitem>
<para>
- The character with the indicated numeric code is substituted.
- If <replaceable class="parameter">digits</replaceable> starts
- with <literal>0x</literal> the rest of the characters are
- interpreted as hexadecimal; otherwise if the first digit is
- <literal>0</literal> the digits are interpreted as octal;
- otherwise the digits are read as a decimal number.
+ The character with the indicated octal code is substituted.
</para>
</listitem>
</varlistentry>