]> granicus.if.org Git - postgresql/commit
Remove temporary WAL and history files at the end of archive recovery
authorMichael Paquier <michael@paquier.xyz>
Wed, 2 Oct 2019 06:53:51 +0000 (15:53 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 2 Oct 2019 06:53:51 +0000 (15:53 +0900)
commit2a724cdbff0bef4b962255c1e322b4deb74c309e
treed9071a6dcd0e2dd0e1e4c80acf49e1ad1d3bed8f
parentad1f2885b8c82e0c2d56d7974f012cbecce17a17
Remove temporary WAL and history files at the end of archive recovery

cbc55da has reworked the order of some actions at the end of archive
recovery.  Unfortunately this overlooked the fact that the startup
process needs to remove RECOVERYXLOG (for temporary WAL segment newly
recovered from archives) and RECOVERYHISTORY (for temporary history
file) at this step, leaving the files around even after recovery ended.

Backpatch to 9.5, like the previous commit.

Author: Sawada Masahiko
Reviewed-by: Fujii Masao, Michael Paquier
Discussion: https://postgr.es/m/CAD21AoBO_eDQub6zojFnWtnmutRBWvYf7=cW4Hsqj+U_R26w3Q@mail.gmail.com
Backpatch-through: 9.5
src/backend/access/transam/xlog.c
src/test/recovery/t/002_archiving.pl