pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Masahiko Sawada <msawada@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Detach injection point at the end of repack_dropped isolation te
Date: Fri, 06 Nov 2026 00:50:37 +0000
Message-ID: <E1xP8A9-00000000OHy-49gC@gemulon.postgresql.org> (raw)

Detach injection point at the end of repack_dropped isolation test.

Commit e5d25959cf8 added the repack_dropped isolation test, which
attaches the injection point repack-concurrently-before-lock as a
local one but doesn't detach it. The injection point is then detached
only when the session's backend exits, and isolationtester doesn't
wait for that before starting the next test. If the backend is slow to
exit, the next test that attaches the same injection point, currently
repack_missingval, fails with an "already defined" error.

Fix by detaching it in the session's teardown, as the other REPACK
tests do. Since the session that attached the injection point detaches
it, the exiting backend no longer touches it.

Reported-by: Hayato Kuroda <kuroda.hayato@fujitsu.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/b175cbae02965ab6d60d4526c076ce929ba24933

Modified Files
--------------
src/test/modules/injection_points/expected/repack_dropped.out | 5 +++++
src/test/modules/injection_points/specs/repack_dropped.spec   | 5 +++++
2 files changed, 10 insertions(+)



view thread (2+ messages)

Message-ID: <E1xP8A9-00000000OHy-49gC@gemulon.postgresql.org>
Permalink:  ../E1xP8A9-00000000OHy-49gC@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xP8A9-00000000OHy-49gC@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: msawada@postgresql.org
  Subject: Re: pgsql: Detach injection point at the end of repack_dropped isolation te
  In-Reply-To: <E1xP8A9-00000000OHy-49gC@gemulon.postgresql.org>
  References: <E1xP8A9-00000000OHy-49gC@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