mirror of
https://github.com/postgres/postgres.git
synced 2025-05-03 22:24:49 +03:00
Fix documentation example of using psql \x with a SELECT command, per
Simon Riggs. Backpatch to 8.2.X.
This commit is contained in:
parent
d49fa4c866
commit
c08cfab407
@ -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
|
PostgreSQL documentation
|
||||||
-->
|
-->
|
||||||
|
|
||||||
@ -88,8 +88,8 @@ PostgreSQL documentation
|
|||||||
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. To achieve that, you could pipe the string into
|
||||||
<application>psql</application>, like this: <literal>echo "\x \\
|
<application>psql</application>, like this: <literal>echo -e
|
||||||
select * from foo;" | psql</literal>.
|
"\\x\nSELECT * FROM foo;" | psql</literal>.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
If the command string contains multiple SQL commands, they are
|
If the command string contains multiple SQL commands, they are
|
||||||
|
Loading…
x
Reference in New Issue
Block a user