Clean up psql -c documentation that uses \\.
authorBruce Momjian <[email protected]>
Wed, 6 Dec 2006 15:40:32 +0000 (15:40 +0000)
committerBruce Momjian <[email protected]>
Wed, 6 Dec 2006 15:40:32 +0000 (15:40 +0000)
doc/src/sgml/ref/psql-ref.sgml

index 236b759ce8aef5805a9e936008ae74895558f119..7f08e06f11f930f9b7c0b707e4692a835c63fb78 100644 (file)
@@ -87,9 +87,10 @@ PostgreSQL documentation
       it contains no <application>psql</application> specific features),
       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 -e
-      "\\x\nSELECT * FROM foo;" | psql</literal>.
+      meta-commands with this option. To achieve that, you could
+      pipe the string into <application>psql</application>, like
+      this: <literal>echo "\x \\ SELECT * FROM foo;" | psql</literal>.
+      (<literal>\\</> is the separator meta-command.)
       </para>
       <para>
        If the command string contains multiple SQL commands, they are