pgsql: Suggest shell here-documents instead of psql -c for multiple com

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Suggest shell here-documents instead of psql -c for multiple com
Date: 2014-02-14 17:55:31
Message-ID: E1WEMz5-0006Nc-AU@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Suggest shell here-documents instead of psql -c for multiple commands.

The documentation suggested using "echo | psql", but not the often-superior
alternative of a here-document. Also, be more direct about suggesting
that people avoid -c for multiple commands. Per discussion.

Branch
------
REL8_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/b0154f20b3bb7c74332f5cbf51baf7ebc68c80b4

Modified Files
--------------
doc/src/sgml/ref/psql-ref.sgml | 20 +++++++++++++++++---
1 file changed, 17 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2014-02-14 18:13:11 pgsql: In mingw builds, make our own import library for libtcl, too.
Previous Message Tom Lane 2014-02-14 17:55:30 pgsql: Suggest shell here-documents instead of psql -c for multiple com