From: | Andres Freund <andres(at)anarazel(dot)de> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: isolationtester: append session name to application_name. |
Date: | 2021-12-13 20:05:55 |
Message-ID: | E1mwra7-0006MO-SD@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(at)anarazel(dot)de>
Reviewed-By: Michael Paquier <michael(at)paquier(dot)xyz>
Reviewed-By: Andrew Dunstan <andrew(at)dunslane(dot)net>
Discussion: https://postgr.es/m/20211211012052.2blmzcmxnxqawd2z@alap3.anarazel.de
Backpatch: 10-, to make backpatching of tests easier.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/3f323956128ff8589ce4d3a14e8b950837831803
Modified Files
--------------
.../expected/insert-conflict-specconflict.out | 20 ++++++++--------
src/test/isolation/isolationtester.c | 28 ++++++++++++++++++++--
.../specs/insert-conflict-specconflict.spec | 5 +---
3 files changed, 37 insertions(+), 16 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2021-12-13 20:05:58 | pgsql: isolationtester: append session name to application_name. |
Previous Message | Andres Freund | 2021-12-13 19:46:17 | pgsql: backpatch "Set application_name per-test in isolation and ecpg t |