]> git.ipfire.org Git - thirdparty/postgresql.git/commit
isolationtester: append session name to application_name.
authorAndres Freund <andres@anarazel.de>
Mon, 13 Dec 2021 20:02:53 +0000 (12:02 -0800)
committerAndres Freund <andres@anarazel.de>
Mon, 13 Dec 2021 20:02:53 +0000 (12:02 -0800)
commitc99fd65fa207d2a08a780b2af5336322835b1568
tree3ee7f646d39f64b482e3bd0c9f1e58931607c71b
parentdfdf445fe515032afe573302ccdf0aa9f9b51899
isolationtester: append session name to application_name.

When writing / debugging an isolation test it sometimes is useful to see which
session holds what lock etc. To make it easier, both as part of spec files and
interactively, append the session name to application_name. Since b1907d688
application_name already contains the test name, this appends the session's
name to that.

insert-conflict-specconflict did something like this manually, which can now
be removed.

As we have done lately with other test infrastructure improvements, backpatch
this change, to make it easier to backpatch tests.

Author: Andres Freund <andres@anarazel.de>
Reviewed-By: Michael Paquier <michael@paquier.xyz>
Reviewed-By: Andrew Dunstan <andrew@dunslane.net>
Discussion: https://postgr.es/m/20211211012052.2blmzcmxnxqawd2z@alap3.anarazel.de
Backpatch: 10-, to make backpatching of tests easier.
src/test/isolation/isolationtester.c