psql: Support multiple -c and -f options, and allow mixing them.
Robert Haas <rhaas@postgresql.org>
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
| Path | Change | +/− |
|---|---|---|
| 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 |