]> git.ipfire.org Git - thirdparty/postgresql.git/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)
commite2501d8013b26ed017b86d9b879930ca98e71c36
tree47d0639f41793640a113ea55839885f2bce64e2b
parentc776cd47245a0de23f361b05edef48df84ff962b
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