pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Don't archive bogus recycled or preallocated files after timelin
Date: Tue, 14 Apr 2015 17:49:21 +0300
Message-ID: <552D28F1.5010103@iki.fi> (raw)
In-Reply-To: <2843.1429021926@sss.pgh.pa.us>
References: <E1YhfnC-0004X7-RK@gemulon.postgresql.org>
	<2414.1428967455@sss.pgh.pa.us>
	<552CB5E4.8050207@iki.fi>
	<2843.1429021926@sss.pgh.pa.us>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

On 04/14/2015 05:32 PM, Tom Lane wrote:
> Heikki Linnakangas <hlinnaka@iki.fi> writes:
>> On 04/14/2015 02:24 AM, Tom Lane wrote:
>>> Wait a minute.  Didn't you just break PITR scenarios?  The *entire point*
>>> of the multiple-timeline mechanism is that you can start a new WAL history
>>> from a point in the past without destroying WAL history after that point
>>> on the old timeline.
>
>> It deletes the files belonging to other timelines from pg_xlog only. The
>> WAL archive is not touched.
>
> How do we know those files are in the WAL archive?

Presumably that's where they came from if you're doing PITR. Or they 
were copied into pg_xlog manually from somewhere else.

After PITR, if you decide that you didn't like the result and perform 
another recovery, you have to restore from a base backup again, which 
will wipe out pg_xlog anyway.

Also, if the recovery continued longer, those files would be deleted 
from pg_xlog anyway, at a later restartpoint.

- Heikki



-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



view thread (10+ messages)

Message-ID: <552D28F1.5010103@iki.fi>
Permalink:  ../552D28F1.5010103@iki.fi/
Also on:    postgresql.org/message-id/552D28F1.5010103@iki.fi

 · 

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: hlinnaka@iki.fi, tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Don't archive bogus recycled or preallocated files after timelin
  In-Reply-To: <552D28F1.5010103@iki.fi>
  References: <E1YhfnC-0004X7-RK@gemulon.postgresql.org> <2414.1428967455@sss.pgh.pa.us> <552CB5E4.8050207@iki.fi> <2843.1429021926@sss.pgh.pa.us> <552D28F1.5010103@iki.fi>

* 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