pgsql: Remove temporary WAL and history files at the end of archive rec - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Remove temporary WAL and history files at the end of archive rec
Date
Msg-id E1iFYYw-0003x6-7a@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/ae205dfe6ced5305777919fc47371a452dfa803f

Modified Files
--------------
src/backend/access/transam/xlog.c | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)


pgsql-committers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: pgsql: Make crash recovery ignore recovery target settings.
Next
From: Alvaro Herrera
Date:
Subject: Re: pgsql: Add hooks for session start and session end, take two