psql: Support multiple -c and -f options, and allow mixing them.

Robert Haas <rhaas@postgresql.org>

Commit: d5563d7df94488bf0ab52ac0678e8a07e5b8297e
Author: Robert Haas <rhaas@postgresql.org>
Date: 2015-12-08T19:04:08Z
Releases: 9.6.0
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.

Files

PathChange+/−
doc/src/sgml/ref/psql-ref.sgml modified +53 −35
src/bin/psql/command.c modified +2 −32
src/bin/psql/command.h modified +1 −1
src/bin/psql/startup.c modified +148 −66
src/test/perl/PostgresNode.pm modified +1 −1

Documentation touched