pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Stabilize 035_standby_logical_decoding.pl.
Date: Tue, 08 Apr 2025 04:23:16 +0000
Message-ID: <E1u20UW-003Edu-1J@gemulon.postgresql.org> (raw)

Stabilize 035_standby_logical_decoding.pl.

Some tests try to invalidate logical slots on the standby server by
running VACUUM on the primary. The problem is that xl_running_xacts was
getting generated and replayed before the VACUUM command, leading to the
advancement of the active slot's catalog_xmin. Due to this, active slots
were not getting invalidated, leading to test failures.

We fix it by skipping the generation of xl_running_xacts for the required
tests with the help of injection points. As the required interface for
injection points was not present in back branches, we fixed the failing
tests in them by disallowing the slot to become active for the required
cases (where rows_removed conflict could be generated).

Author: Hayato Kuroda <kuroda.hayato@fujitsu.com>
Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Backpatch-through: 16, where it was introduced
Discussion: https://postgr.es/m/Z6oQXc8LmiTLfwLA@ip-10-97-1-34.eu-west-3.compute.internal

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/105b2cb336173d7c62e26ad104682175ddad4cff

Modified Files
--------------
src/backend/storage/ipc/standby.c                  | 12 +++++
.../recovery/t/035_standby_logical_decoding.pl     | 56 ++++++++++++++++------
2 files changed, 54 insertions(+), 14 deletions(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1u20UW-003Edu-1J@gemulon.postgresql.org>
Permalink:  ../E1u20UW-003Edu-1J@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1u20UW-003Edu-1J@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: akapila@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Stabilize 035_standby_logical_decoding.pl.
  In-Reply-To: <E1u20UW-003Edu-1J@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