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 minor bug in isolationtester.
Date: Wed, 17 Oct 2018 19:07:06 +0000
Message-ID: <E1gCr9u-0006xh-JG@gemulon.postgresql.org> (raw)

Fix minor bug in isolationtester.

If the lock wait query failed, isolationtester would report the
PQerrorMessage from some other connection, meaning there would be
no message or an unrelated one.  This seems like a pretty unlikely
occurrence, but if it did happen, this bug could make it really
difficult/confusing to figure out what happened.  That seems to
justify patching all the way back.

In passing, clean up another place where the "wrong" conn was used
for an error report.  That one's not actually buggy because it's
a different alias for the same connection, but it's still confusing
to the reader.

Branch
------
REL_11_STABLE

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

Modified Files
--------------
src/test/isolation/isolationtester.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)



view thread (7+ messages)  latest in thread

Message-ID: <E1gCr9u-0006xh-JG@gemulon.postgresql.org>
Permalink:  ../E1gCr9u-0006xh-JG@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gCr9u-0006xh-JG@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 minor bug in isolationtester.
  In-Reply-To: <E1gCr9u-0006xh-JG@gemulon.postgresql.org>
  References: <E1gCr9u-0006xh-JG@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