Fix minor bug in isolationtester.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 17 Oct 2018 19:06:38 +0000 (15:06 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 17 Oct 2018 19:06:38 +0000 (15:06 -0400)
commit176f6590270c8e59e5d68b339bace9d8696d4047
tree7e4b563614268702dc71e342094a363195fdfc4c
parentec5fe7f799a4c18c1d2a33ca4eb723d29493e93f
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.
src/test/isolation/isolationtester.c