pgsql: pgbench: Add --continue-on-error option.

Поиск
Список
Период
Сортировка
Искать

pgsql: pgbench: Add --continue-on-error option.

От:
Fujii Masao <fujii@postgresql.org>
Дата:
pgbench: Add --continue-on-error option.

This commit adds the --continue-on-error option, allowing pgbench clients
to continue running even when SQL statements fail for reasons other than
serialization or deadlock errors. Without this option (by default),
the clients aborts in such cases, which was the only available behavior
previously.

This option is useful for benchmarks using custom scripts that may
raise errors, such as unique constraint violations, where users want
pgbench to complete the run despite individual statement failures.

Author: Rintaro Ikeda 
Co-authored-by: Yugo Nagata 
Co-authored-by: Fujii Masao 
Reviewed-by: Stepan Neretin 
Reviewed-by: Matthias van de Meent 
Reviewed-by: Dilip Kumar 
Reviewed-by: Srinath Reddy Sadipiralla 
Reviewed-by: Hayato Kuroda 
Reviewed-by: Anthonin Bonnefoy 
Reviewed-by: Chao Li 
Discussion: https://postgr.es/m/44334231a4d214fac382a69cceb7d9fc@oss.nttdata.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0ab208fa505c04e2b3483de53a73edb71f9b9106

Modified Files
--------------
doc/src/sgml/ref/pgbench.sgml                |  65 ++++++++++++---
src/bin/pgbench/pgbench.c                    | 117 ++++++++++++++++++++++-----
src/bin/pgbench/t/001_pgbench_with_server.pl |  22 +++++
3 files changed, 171 insertions(+), 33 deletions(-)

FAQ