postgres.git / summary / log / commit / refs

commit    7692d8a05bfc86901aea1b16e0fa6ff86d6d2668
Author:   Daniel Gustafsson <dgustafsson@postgresql.org>
Date:     Wed Jul 15 19:40:09 2026 +0000
First released in: 15.19, 16.15, 17.11, 18.6, 19.0

    pgbench: Fix incorrect parameter name in error message
    
    Commit 6f164e6d17616 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


src/bin/pgbench/pgbench.c | 2 +- src/bin/pgbench/t/002_pgbench_no_server.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/pgbench/pgbench.c b/src/bin/pgbench/pgbench.c index cbe072bdbb5..6f282699be9 100644 --- a/src/bin/pgbench/pgbench.c +++ b/src/bin/pgbench/pgbench.c @@ -6826,7 +6826,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); diff --git a/src/bin/pgbench/t/002_pgbench_no_server.pl b/src/bin/pgbench/t/002_pgbench_no_server.pl index a04b3531f42..e5b679892f0 100644 --- a/src/bin/pgbench/t/002_pgbench_no_server.pl +++ b/src/bin/pgbench/t/002_pgbench_no_server.pl @@ -92,7 +92,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', [parent: 0c5516a0df97]