From: Bruce Momjian Date: Tue, 5 Dec 2006 17:41:02 +0000 (+0000) Subject: Fix documentation example of using psql \x with a SELECT command, per X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=6ae8b7d2103c017a616e4de914aa3ba8859c64dc;p=users%2Fbernd%2Fpostgres.git Fix documentation example of using psql \x with a SELECT command, per Simon Riggs. Backpatch to 8.2.X. --- diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index 0c94841720..236b759ce8 100644 --- a/doc/src/sgml/ref/psql-ref.sgml +++ b/doc/src/sgml/ref/psql-ref.sgml @@ -88,8 +88,8 @@ PostgreSQL documentation 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 "\x \\ - select * from foo;" | psql. + psql, like this: echo -e + "\\x\nSELECT * FROM foo;" | psql. If the command string contains multiple SQL commands, they are