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 09:38:28 +0300
Message-ID: <552CB5E4.8050207@iki.fi> (raw)
In-Reply-To: <2414.1428967455@sss.pgh.pa.us>
References: <E1YhfnC-0004X7-RK@gemulon.postgresql.org>
	<2414.1428967455@sss.pgh.pa.us>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

On 04/14/2015 02:24 AM, Tom Lane wrote:
> Heikki Linnakangas <heikki.linnakangas@iki.fi> writes:
>> To fix, whenever we switch to a new timeline, scan the data directory for
>> WAL segments on the old timeline, but with a higher segment number, and
>> remove them.
>
> 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.

- 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)  latest in thread

Message-ID: <552CB5E4.8050207@iki.fi>
Permalink:  ../552CB5E4.8050207@iki.fi/
Also on:    postgresql.org/message-id/552CB5E4.8050207@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: <552CB5E4.8050207@iki.fi>
  References: <E1YhfnC-0004X7-RK@gemulon.postgresql.org> <2414.1428967455@sss.pgh.pa.us> <552CB5E4.8050207@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