aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2025-06-14 03:35:27 +0300
committerAlexander Korotkov <akorotkov@postgresql.org>2025-06-14 03:55:21 +0300
commiteb124c3d6deb5d0c7a588d847e3840bcc2cd0dcc (patch)
treefc190248910f2587e3d24a7c1cc158d66425d7c9 /src/backend/utils
parentca307d5cec90a4fde62a50fafc8ab607ff1d8664 (diff)
downloadpostgresql-eb124c3d6deb5d0c7a588d847e3840bcc2cd0dcc.tar.gz
postgresql-eb124c3d6deb5d0c7a588d847e3840bcc2cd0dcc.zip
Add TAP tests to check replication slot advance during the checkpoint
The new tests verify that logical and physical replication slots are still valid after an immediate restart on checkpoint completion when the slot was advanced during the checkpoint. This commit introduces two new injection points to make these tests possible: * checkpoint-before-old-wal-removal - triggered in the checkpointer process just before old WAL segments cleanup; * logical-replication-slot-advance-segment - triggered in LogicalConfirmReceivedLocation() when restart_lsn was changed enough to point to the next WAL segment. Discussion: https://postgr.es/m/flat/1d12d2-67235980-35-19a406a0%4063439497 Author: Vitaly Davydov <v.davydov@postgrespro.ru> Author: Tomas Vondra <tomas@vondra.me> Reviewed-by: Alexander Korotkov <aekorotkov@gmail.com> Reviewed-by: Amit Kapila <amit.kapila16@gmail.com> Backpatch-through: 17
Diffstat (limited to 'src/backend/utils')
0 files changed, 0 insertions, 0 deletions