From: Bruce Momjian Date: Wed, 6 Dec 2006 15:40:32 +0000 (+0000) Subject: Clean up psql -c documentation that uses \\. X-Git-Tag: REL8_2_1~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a7fb173fa4783e4881c893dfb8624ad5ac0ae235;p=postgresql Clean up psql -c documentation that uses \\. --- diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index 541ba8d68a..0cba5772dc 100644 --- a/doc/src/sgml/ref/psql-ref.sgml +++ b/doc/src/sgml/ref/psql-ref.sgml @@ -1,5 +1,5 @@ @@ -87,9 +87,10 @@ PostgreSQL documentation it contains no psql specific features), or a single backslash command. Thus you cannot mix SQL and psql - meta-commands. To achieve that, you could pipe the string into - psql, like this: echo -e - "\\x\nSELECT * FROM foo;" | psql. + meta-commands with this option. To achieve that, you could + pipe the string into psql, like + this: echo "\x \\ SELECT * FROM foo;" | psql. + (\\ is the separator meta-command.) If the command string contains multiple SQL commands, they are