Fix possible lockup in pgbench with -R. pgbench would sometimes get stuck waiting forever after its last client thread terminated, due to failing to check for there being nothing more to wait for.
Bug introduced during refactoring in v10 (I didn't bother to try to assign blame to a specific commit). It's already repaired in HEAD/v12 thanks to commit 3bac77c48, but v10 and v11 need this fix. Fabien Coelho, per report from Tomas Vondra; reviewed by Yoshikazu Imai Discussion: https://postgr.es/m/[email protected] Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/46c193213adb4cbcdd0f8198b361de27d0ca13fe Modified Files -------------- src/bin/pgbench/pgbench.c | 4 ++++ 1 file changed, 4 insertions(+)
