]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Improve recovery test 046_checkpoint_logical_slot
authorAlexander Korotkov <akorotkov@postgresql.org>
Thu, 17 Jul 2025 21:04:52 +0000 (00:04 +0300)
committerAlexander Korotkov <akorotkov@postgresql.org>
Sat, 19 Jul 2025 10:45:16 +0000 (13:45 +0300)
commit6aefde2a2db826f363891e1cc1157f22a6c30707
tree3dca8ad906585be414c8ac8cf4d363c4b9952e16
parent91ad1bdef8e46983d82d2723c6e1c05e004f74c5
Improve recovery test 046_checkpoint_logical_slot

This commit improves 046_checkpoint_logical_slot in two aspects:
- 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.

Discussion: https://postgr.es/m/CALDaNm34m36PDHzsU_GdcNXU0gLTfFY5rzh9GSQv%3Dw6B%2BQVNRQ%40mail.gmail.com
Author: Alexander Korotkov <akorotkov@postgresql.org>
Co-authored-by: Hayato Kuroda <kuroda.hayato@fujitsu.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
src/test/recovery/t/046_checkpoint_logical_slot.pl