Reintroduce test 046_checkpoint_logical_slot
authorAlexander Korotkov <akorotkov@postgresql.org>
Sat, 19 Jul 2025 10:59:17 +0000 (13:59 +0300)
committerAlexander Korotkov <akorotkov@postgresql.org>
Sat, 19 Jul 2025 10:59:27 +0000 (13:59 +0300)
commit226c5674540f8bc5144e9ba9a83f12977ba4203c
tree0df711c08f3617f2f19f664355dfe4f3ccc6d368
parentc71c702f067b9191332c07acadd2297a42915e5f
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@postgresql.org>
Co-authored-by: Hayato Kuroda <kuroda.hayato@fujitsu.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Backpatch-through: 18
src/test/recovery/meson.build
src/test/recovery/t/046_checkpoint_logical_slot.pl [new file with mode: 0644]