pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Stabilize 051_effective_wal_level.pl.
2+ messages / 1 participants
[nested] [flat]

* pgsql: Stabilize 051_effective_wal_level.pl.
@ 2026-11-06 00:17  Masahiko Sawada <msawada@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Masahiko Sawada @ 2026-11-06 00:17 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
master

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

Modified Files
--------------
src/test/recovery/t/051_effective_wal_level.pl | 37 +++++++++++++++++++++-----
1 file changed, 31 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Stabilize 051_effective_wal_level.pl.
@ 2026-11-06 00:17  Masahiko Sawada <msawada@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Masahiko Sawada @ 2026-11-06 00:17 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2026-11-06 00:17 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-11-06 00:17 pgsql: Stabilize 051_effective_wal_level.pl. Masahiko Sawada <msawada@postgresql.org>
2026-11-06 00:17 pgsql: Stabilize 051_effective_wal_level.pl. Masahiko Sawada <msawada@postgresql.org>

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