Fix documentation example of using psql \x with a SELECT command, per
authorBruce Momjian <[email protected]>
Tue, 5 Dec 2006 17:41:02 +0000 (17:41 +0000)
committerBruce Momjian <[email protected]>
Tue, 5 Dec 2006 17:41:02 +0000 (17:41 +0000)
Simon Riggs.  Backpatch to 8.2.X.

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

index 0c948417202b92fffb2cfb4841f53a25be5079a2..236b759ce8aef5805a9e936008ae74895558f119 100644 (file)
@@ -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