diff options
author | Bruce Momjian <bruce@momjian.us> | 2006-12-05 17:40:55 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2006-12-05 17:40:55 +0000 |
commit | c08cfab4077e9d8716491f79d53e749405d1e9b9 (patch) | |
tree | 9b681ca84ef4c6b1d1103ca0e0f0a082f7f6cf9f | |
parent | d49fa4c866477d1880dbb90466df321dd920354a (diff) | |
download | postgresql-c08cfab4077e9d8716491f79d53e749405d1e9b9.tar.gz postgresql-c08cfab4077e9d8716491f79d53e749405d1e9b9.zip |
Fix documentation example of using psql \x with a SELECT command, per
Simon Riggs. Backpatch to 8.2.X.
-rw-r--r-- | doc/src/sgml/ref/psql-ref.sgml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index 88d6c22a910..30d2710fd2e 100644 --- a/doc/src/sgml/ref/psql-ref.sgml +++ b/doc/src/sgml/ref/psql-ref.sgml @@ -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 --> @@ -88,8 +88,8 @@ PostgreSQL documentation 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 "\x \\ - select * from foo;" | psql</literal>. + <application>psql</application>, like this: <literal>echo -e + "\\x\nSELECT * FROM foo;" | psql</literal>. </para> <para> If the command string contains multiple SQL commands, they are |