Skip to content

Commit c08cfab

Browse files
committed
Fix documentation example of using psql \x with a SELECT command, per
Simon Riggs. Backpatch to 8.2.X.
1 parent d49fa4c commit c08cfab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.175 2006/11/21 17:01:58 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.176 2006/12/05 17:40:55 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -88,8 +88,8 @@ PostgreSQL documentation
8888
or a single backslash command. Thus you cannot mix
8989
<acronym>SQL</acronym> and <application>psql</application>
9090
meta-commands. To achieve that, you could pipe the string into
91-
<application>psql</application>, like this: <literal>echo "\x \\
92-
select * from foo;" | psql</literal>.
91+
<application>psql</application>, like this: <literal>echo -e
92+
"\\x\nSELECT * FROM foo;" | psql</literal>.
9393
</para>
9494
<para>
9595
If the command string contains multiple SQL commands, they are

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy