]> granicus.if.org Git - postgresql/commitdiff
Fix documentation example of using psql \x with a SELECT command, per
authorBruce Momjian <bruce@momjian.us>
Tue, 5 Dec 2006 17:40:55 +0000 (17:40 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 5 Dec 2006 17:40:55 +0000 (17:40 +0000)
Simon Riggs.  Backpatch to 8.2.X.

doc/src/sgml/ref/psql-ref.sgml

index 88d6c22a910b5ab61cec102fd80c2ea1963c122e..30d2710fd2e9e72d49677ab7f1414f31a857caca 100644 (file)
@@ -1,5 +1,5 @@
 <!--
-$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.175 2006/11/21 17:01:58 momjian Exp $
+$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.176 2006/12/05 17:40:55 momjian Exp $
 PostgreSQL documentation
 -->
 
@@ -88,8 +88,8 @@ PostgreSQL documentation
       or a single backslash command. Thus you cannot mix
       <acronym>SQL</acronym> and <application>psql</application>
       meta-commands. To achieve that, you could pipe the string into
-      <application>psql</application>, like this: <literal>echo "\x \\
-      select * from foo;" | psql</literal>.
+      <application>psql</application>, like this: <literal>echo -e
+      "\\x\nSELECT * FROM foo;" | psql</literal>.
       </para>
       <para>
        If the command string contains multiple SQL commands, they are