1
0
mirror of https://github.com/postgres/postgres.git synced 2026-10-23 13:29:09 +03:00

pgbench: Fix incorrect parameter name in error message

Commit 6f164e6d17 accidentally mistyped --client as --clients in
the error message.  Backpatch down to v15 where the it was introduced.

Author: Semih Doğan <semih702do@gmail.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/CALOtZ7tuWisV=v0cUY_q6PLHJ-fOiQ7ZN476JwmM0PyV0t5i7Q@mail.gmail.com
Backpatch-through: 15
This commit is contained in:
Daniel Gustafsson
2026-07-15 21:40:09 +02:00
parent 38d24d705f
commit 79abbc90a8
2 changed files with 2 additions and 2 deletions

View File

@@ -6787,7 +6787,7 @@ main(int argc, char **argv)
break;
case 'c':
benchmarking_option_set = true;
if (!option_parse_int(optarg, "-c/--clients", 1, INT_MAX,
if (!option_parse_int(optarg, "-c/--client", 1, INT_MAX,
&nclients))
{
exit(1);

View File

@@ -93,7 +93,7 @@ my @options = (
[ 'too many scripts', '-S ' x 129, [qr{at most 128 SQL scripts}] ],
[
'bad #clients', '-c three',
[qr{invalid value "three" for option -c/--clients}]
[qr{invalid value "three" for option -c/--client}]
],
[
'bad #threads', '-j eleven',