pgsql: Reintroduce test 046_checkpoint_logical_slot

From: Alexander Korotkov <akorotkov(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Reintroduce test 046_checkpoint_logical_slot
Date: 2025-07-19 12:45:24
Message-ID: E1ud6wO-0075WC-23@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Reintroduce test 046_checkpoint_logical_slot

This commit is only for HEAD and v18, where the test has been removed.
It also incorporates improvements below to stability and coverage of the
original test, which were already backpatched to v17.
- Add one pg_logical_emit_message() call to force the creation of a record
that spawns across two pages.
- Make the logic wait for the checkpoint completion.

Author: Alexander Korotkov <akorotkov(at)postgresql(dot)org>
Co-authored-by: Hayato Kuroda <kuroda(dot)hayato(at)fujitsu(dot)com>
Reviewed-by: Michael Paquier <michael(at)paquier(dot)xyz>
Backpatch-through: 18

Branch
------
master

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

Modified Files
--------------
src/test/recovery/meson.build | 1 +
src/test/recovery/t/046_checkpoint_logical_slot.pl | 142 +++++++++++++++++++++
2 files changed, 143 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Alexander Korotkov 2025-07-19 12:45:40 pgsql: Fix infinite wait when reading a partially written WAL record
Previous Message Michael Paquier 2025-07-19 06:03:48 pgsql: Check status of nodes after regression test run in 027_stream_re