Allow pgbench to exit immediately when any client is aborted.
authorTatsuo Ishii <ishii@postgresql.org>
Wed, 30 Aug 2023 01:03:31 +0000 (10:03 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Wed, 30 Aug 2023 01:03:31 +0000 (10:03 +0900)
commit3c662643c4bb94aaf384e83fcfb53f6e4da0035e
tree64152318d55b820d60ade372a5610f1327782f11
parent8bf7db0285dfbc4b505c8be4c34ab7386eb6297f
Allow pgbench to exit immediately when any client is aborted.

Previously when client was aborted due to some error during
benchmarking, other clients continued their run until certain number
of transactions specified -t was reached or the time specified by -T
was expired. At the end, the results are printed with caution: "Run
was aborted; the above results are incomplete" shows.

New option "--exit-on-abort" allows pgbench to exit immediately in
this case so that users could quickly fix the cause of the failure and
try again another round of benchmarking.

Author: Yugo Nagata
Reviewed-by: Fabien COELHO, Tatsuo Ishii
Discussion: https://postgr.es/m/flat/20230804130325.df32e60879c38c92bca64207%40sraoss.co.jp
doc/src/sgml/ref/pgbench.sgml
src/bin/pgbench/pgbench.c
src/bin/pgbench/t/001_pgbench_with_server.pl