pgsql: Fix minor bug in isolationtester.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix minor bug in isolationtester.
Дата
Msg-id E1gCr9u-0006xn-JY@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7a1e7b291d0691461cff5d2ae7eff114f035f6de

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


В списке pgsql-committers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Fix crash in multi-insert COPY
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Const-ify a few more large static tables.