]> granicus.if.org Git - postgresql/commit
psql: Support multiple -c and -f options, and allow mixing them.
authorRobert Haas <rhaas@postgresql.org>
Tue, 8 Dec 2015 19:04:08 +0000 (14:04 -0500)
committerRobert Haas <rhaas@postgresql.org>
Tue, 8 Dec 2015 19:04:08 +0000 (14:04 -0500)
commitd5563d7df94488bf0ab52ac0678e8a07e5b8297e
treed43ce085b39e22a2e6ca8d621a8d0a165e5f78a7
parent385f337c9f39b21dca96ca4770552a10a6d5af24
psql: Support multiple -c and -f options, and allow mixing them.

To support this, we must reconcile some historical anomalies in the
behavior of -c.  In particular, as a backward-incompatibility, -c no
longer implies --no-psqlrc.

Pavel Stehule (code) and Catalin Iacob (documentation).  Review by
Michael Paquier and myself.  Proposed behavior per Tom Lane.
doc/src/sgml/ref/psql-ref.sgml
src/bin/psql/command.c
src/bin/psql/command.h
src/bin/psql/startup.c
src/test/perl/PostgresNode.pm