]> granicus.if.org Git - postgresql/commit
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)
commit7a1e7b291d0691461cff5d2ae7eff114f035f6de
treeea7fa025e887a643fb69ad53b8d999facaae21da
parentfb38d9a2e1ed8c42a81c18743c4e61a57b226497
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