From: Masahiko Sawada <msawada@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Stabilize 051_effective_wal_level.pl.
Date: Fri, 06 Nov 2026 00:17:10 +0000
Message-ID: <E1xP7dm-00000000NtW-2LBt@gemulon.postgresql.org> (raw)
Stabilize 051_effective_wal_level.pl.
Several tests in 051_effective_wal_level.pl quit a background psql
session that attached a local injection point and then immediately
start another session that attaches the same injection point. A local
injection point is detached only when its backend exits, and quitting
the background psql session doesn't wait for that. So if the old
backend is slow to exit, the new session fails to attach the injection
point because it is still defined, and the test times out waiting for
a backend to stop at it.
Fix by waiting for the old backend to disappear from pg_stat_activity
view after quitting the session. Detaching the injection point before
quitting isn't enough, because the exiting backend still detaches it
by name and could remove the one the next session has just attached.
Per buildfarm member melonworm.
Reported-by: Alexander Lakhin <exclusion@gmail.com>
Author: Hayato Kuroda <kuroda.hayato@fujitsu.com>
Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>
Discussion: https://postgr.es/m/8ccd0497-c914-47e2-804d-299b678863bf@gmail.com
Backpatch-through: 19
Branch
------
REL_19_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/9c8418d0141d4f80f550cee2eb777c19454a2e07
Modified Files
--------------
src/test/recovery/t/051_effective_wal_level.pl | 37 +++++++++++++++++++++-----
1 file changed, 31 insertions(+), 6 deletions(-)
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: msawada@postgresql.org
Subject: Re: pgsql: Stabilize 051_effective_wal_level.pl.
In-Reply-To: <E1xP7dm-00000000NtW-2LBt@gemulon.postgresql.org>
References: <E1xP7dm-00000000NtW-2LBt@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