pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix possible lockup in pgbench with -R.
Date: Fri, 26 Jul 2019 19:17:10 +0000
Message-ID: <E1hr5iI-0005tl-Oq@gemulon.postgresql.org> (raw)

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(+)



view thread (2+ messages)

Message-ID: <E1hr5iI-0005tl-Oq@gemulon.postgresql.org>
Permalink:  ../E1hr5iI-0005tl-Oq@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hr5iI-0005tl-Oq@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix possible lockup in pgbench with -R.
  In-Reply-To: <E1hr5iI-0005tl-Oq@gemulon.postgresql.org>
  References: <E1hr5iI-0005tl-Oq@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox