Commit d7f316d2 authored by Bruce Momjian's avatar Bruce Momjian

Clean up psql -c documentation that uses \\.

parent a6f156b9
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.176 2006/12/05 17:40:55 momjian Exp $ $PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.177 2006/12/06 15:40:11 momjian Exp $
PostgreSQL documentation PostgreSQL documentation
--> -->
...@@ -87,9 +87,10 @@ PostgreSQL documentation ...@@ -87,9 +87,10 @@ PostgreSQL documentation
it contains no <application>psql</application> specific features), it contains no <application>psql</application> specific features),
or a single backslash command. Thus you cannot mix or a single backslash command. Thus you cannot mix
<acronym>SQL</acronym> and <application>psql</application> <acronym>SQL</acronym> and <application>psql</application>
meta-commands. To achieve that, you could pipe the string into meta-commands with this option. To achieve that, you could
<application>psql</application>, like this: <literal>echo -e pipe the string into <application>psql</application>, like
"\\x\nSELECT * FROM foo;" | psql</literal>. this: <literal>echo "\x \\ SELECT * FROM foo;" | psql</literal>.
(<literal>\\</> is the separator meta-command.)
</para> </para>
<para> <para>
If the command string contains multiple SQL commands, they are If the command string contains multiple SQL commands, they are
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment