]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
pgbench: Fix incorrect parameter name in error message
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Wed, 15 Jul 2026 19:40:09 +0000 (21:40 +0200)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Wed, 15 Jul 2026 19:40:09 +0000 (21:40 +0200)
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
src/bin/pgbench/t/002_pgbench_no_server.pl

index 29668e66b3b8ed71ae24a944a4e414515330e7be..0caddb8570b0e25f16b4ab7bd88bbf182c9d2018 100644 (file)
@@ -6744,7 +6744,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);
index 0ec54fbb0330483548ca717296d24c45f170bbc3..dd1bdef81b64bf9797a65aed2db118ce7c40fa52 100644 (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',