postgresql/src/bin
Fujii Masao fee46ab4f2 Fix assertion failure in pgbench when handling multiple pipeline sync messages.
Previously, when running pgbench in pipeline mode with a custom script
that triggered retriable errors (e.g., serialization errors),
an assertion failure could occur:

    Assertion failed: (res == ((void*)0)), function discardUntilSync, file pgbench.c, line 3515.

The root cause was that pgbench incorrectly assumed only a single
pipeline sync message would be received at the end. In reality,
multiple pipeline sync messages can be sent and must be handled properly.

This commit fixes the issue by updating pgbench to correctly process
multiple pipeline sync messages, preventing the assertion failure.

Back-patch to v15, where the bug was introduced.

Author: Fujii Masao <masao.fujii@gmail.com>
Reviewed-by: Tatsuo Ishii <ishii@postgresql.org>
Discussion: https://postgr.es/m/CAHGQGwFAX56Tfx+1ppo431OSWiLLuW72HaGzZ39NkLkop6bMzQ@mail.gmail.com
Backpatch-through: 15
2025-08-03 10:49:54 +09:00
..
initdb Don't put library-supplied -L/-I switches before user-supplied ones. 2025-07-29 15:17:40 -04:00
pg_amcheck Translation updates 2025-05-05 12:04:49 +02:00
pg_archivecleanup Translation updates 2025-07-14 13:54:38 +03:00
pg_basebackup Fix duplicate transaction replay during pg_createsubscriber. 2025-07-24 08:50:40 +00:00
pg_checksums Translation updates 2025-07-14 13:54:38 +03:00
pg_combinebackup Translation updates 2025-07-14 13:54:38 +03:00
pg_config Translation updates 2025-05-05 12:04:49 +02:00
pg_controldata Translation updates 2025-07-14 13:54:38 +03:00
pg_ctl Translation updates 2025-07-14 13:54:38 +03:00
pg_dump Simplify options in pg_dump and pg_restore. 2025-08-02 07:51:35 -07:00
pg_resetwal Translation updates 2025-07-14 13:54:38 +03:00
pg_rewind Translation updates 2025-07-14 13:54:38 +03:00
pg_test_fsync Translation updates 2025-05-05 12:04:49 +02:00
pg_test_timing Translation updates 2025-05-05 12:04:49 +02:00
pg_upgrade Simplify options in pg_dump and pg_restore. 2025-08-02 07:51:35 -07:00
pg_verifybackup Translation updates 2025-07-14 13:54:38 +03:00
pg_waldump Translation updates 2025-07-14 13:54:38 +03:00
pg_walsummary pg_walsummary: Improve stability of test checking statistics 2025-07-08 13:48:52 +09:00
pgbench Fix assertion failure in pgbench when handling multiple pipeline sync messages. 2025-08-03 10:49:54 +09:00
pgevent Update copyright for 2025 2025-01-01 11:21:55 -05:00
psql Fix tab completion for ALTER ROLE|USER ... RESET 2025-07-31 16:05:04 +02:00
scripts Translation updates 2025-07-14 13:54:38 +03:00
Makefile Update copyright for 2025 2025-01-01 11:21:55 -05:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00