pgsql: Error out on too many command-line arguments

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

pgsql: Error out on too many command-line arguments

Peter Eisentraut-3
Error out on too many command-line arguments

Fix up oid2name, pg_upgrade, and pgbench to error out on too many
command-line arguments.  This makes it match the behavior of other
PostgreSQL programs.

Author: Peter Eisentraut, Ibrar Ahmed
Discussion: https://www.postgresql.org/message-id/flat/f2554627-04e7-383a-ef01-ab99bb6a291c%402ndquadrant.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9684e426954921e8b2bfa367f9e6a4cbbf4ce5ff

Modified Files
--------------
contrib/oid2name/oid2name.c |  8 ++++++++
src/bin/pg_upgrade/option.c |  3 +++
src/bin/pgbench/pgbench.c   | 10 +++++++++-
3 files changed, 20 insertions(+), 1 deletion(-)