pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove temporary WAL and history files at the end of archive rec
Date: Wed, 02 Oct 2019 06:56:38 +0000
Message-ID: <E1iFYYw-0003wx-4X@gemulon.postgresql.org> (raw)

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
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2a724cdbff0bef4b962255c1e322b4deb74c309e

Modified Files
--------------
src/backend/access/transam/xlog.c    | 24 ++++++++++++------------
src/test/recovery/t/002_archiving.pl | 25 ++++++++++++++++++++++++-
2 files changed, 36 insertions(+), 13 deletions(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1iFYYw-0003wx-4X@gemulon.postgresql.org>
Permalink:  ../E1iFYYw-0003wx-4X@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iFYYw-0003wx-4X@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Remove temporary WAL and history files at the end of archive rec
  In-Reply-To: <E1iFYYw-0003wx-4X@gemulon.postgresql.org>
  References: <E1iFYYw-0003wx-4X@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox