aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlogutils.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2020-06-18 16:35:32 +0900
committerMichael Paquier <michael@paquier.xyz>2020-06-18 16:35:32 +0900
commit16f43122d46fc1f39af3f46024495de0b27ba751 (patch)
treefd803bd5f8edd32f8494dc6a76631ec52d72cae5 /src/backend/access/transam/xlogutils.c
parent812a84d1cca1f8e43adc2e6a7dfe2ae83e2c1a29 (diff)
downloadpostgresql-16f43122d46fc1f39af3f46024495de0b27ba751.tar.gz
postgresql-16f43122d46fc1f39af3f46024495de0b27ba751.zip
Fix oldest xmin and LSN computation across repslots after advancing
Advancing a replication slot did not recompute the oldest xmin and LSN values across replication slots, preventing resource removal like segments not recycled at checkpoint time. The original commit that introduced the slot advancing in 9c7d06d never did the update of those oldest values, and b0afdca removed this code. This commit adds a TAP test to check segment recycling with advancing for physical slots, enforcing an extra segment switch before advancing to check if the segment gets correctly recycled after a checkpoint. Reported-by: Andres Freund Reviewed-by: Alexey Kondratov, Kyptaro Horiguchi Discussion: https://postgr.es/m/20200609171904.kpltxxvjzislidks@alap3.anarazel.de Backpatch-through: 11
Diffstat (limited to 'src/backend/access/transam/xlogutils.c')
0 files changed, 0 insertions, 0 deletions