pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: isolationtester: append session name to application_name.
Date: Mon, 13 Dec 2021 20:06:07 +0000
Message-ID: <E1mwraJ-0006OI-AB@gemulon.postgresql.org> (raw)

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.

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/c99fd65fa207d2a08a780b2af5336322835b1568

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



view thread (8+ messages)  latest in thread

Message-ID: <E1mwraJ-0006OI-AB@gemulon.postgresql.org>
Permalink:  ../E1mwraJ-0006OI-AB@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1mwraJ-0006OI-AB@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de
  Subject: Re: pgsql: isolationtester: append session name to application_name.
  In-Reply-To: <E1mwraJ-0006OI-AB@gemulon.postgresql.org>
  References: <E1mwraJ-0006OI-AB@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox