pgsql: Fix possible lockup in pgbench with -R.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix possible lockup in pgbench with -R.
Date: 2019-07-26 19:17:10
Message-ID: E1hr5iI-0005tl-Oq@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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/cc5d76c1-6144-bbed-ad1b-961d13d88f3b@2ndquadrant.com

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/e991b6cce3f26d979a2a47792526f3785bac116b

Modified Files
--------------
src/bin/pgbench/pgbench.c | 4 ++++
1 file changed, 4 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2019-07-26 21:51:07 pgsql: Don't uselessly escape a string that doesn't need escaping
Previous Message Tom Lane 2019-07-26 17:07:37 pgsql: Avoid choosing "localtime" or "posixrules" as TimeZone during in