pgbench-too-many-1.patch

text/x-diff

Filename: pgbench-too-many-1.patch
Type: text/x-diff
Part: 0
Message: Re: pg_upgrade: Error out on too many command-line arguments

Patch

Format: unified
File+
src/bin/pgbench/t/002_pgbench_no_server.pl 1 0
diff --git a/src/bin/pgbench/t/002_pgbench_no_server.pl b/src/bin/pgbench/t/002_pgbench_no_server.pl
index f7fa18418b..912312b7ca 100644
--- a/src/bin/pgbench/t/002_pgbench_no_server.pl
+++ b/src/bin/pgbench/t/002_pgbench_no_server.pl
@@ -157,6 +157,7 @@ my @options = (
 			qr{error while setting random seed from --random-seed option}
 		]
 	],
+	[	'too many args', 'dbname foo', [ qr{too many .*first is "foo"} ] ],
 
 	# logging sub-options
 	[