pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: John Lumby <johnlumby@hotmail.com>
Cc: Julien Rouhaud <julien.rouhaud@dalibo.com>
Cc: pgsql bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14109: pg_rewind fails to update target control file in one scenario
Date: Thu, 28 Apr 2016 08:28:50 -0300
Message-ID: <20160428112850.GA71376@alvherre.pgsql> (raw)
In-Reply-To: <CAB7nPqRoXquAKhc4605JDU0zXOxPPiwiz3DGeOYWaSN-wT45aw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Michael Paquier wrote:
> On Wed, Apr 27, 2016 at 9:47 AM, Michael Paquier
> <michael.paquier@gmail.com> wrote:

> > Replication slots are perfectly able to retain WAL segments from a
> > prior timeline, so I am not sure that this would be much a gain.
> 
> Or to put in in other words, a slot that activates automatically
> itself at promotion to retain WAL from the previous timeline would be
> interesting for pg_rewind, but the use case we have here is only
> pg_rewind. so it seems a bit narrow to bother modifying the core core
> to add this support in the replication slot code. And this can be
> solved lightly with an archive. Thoughts from others are welcome.

Sounds to me like it should be enough to document (in pg_rewind's page)
that activating a slot prior to the promotion.  Maybe we could have
"pg_ctl promote" have an option to create a slot, to make this simpler?

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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



view thread (18+ messages)  latest in thread

Message-ID: <20160428112850.GA71376@alvherre.pgsql>
Permalink:  ../20160428112850.GA71376@alvherre.pgsql/
Also on:    postgresql.org/message-id/20160428112850.GA71376@alvherre.pgsql

 · 

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-bugs@postgresql.org
  Cc: alvherre@2ndquadrant.com, michael.paquier@gmail.com, johnlumby@hotmail.com, julien.rouhaud@dalibo.com
  Subject: Re: BUG #14109: pg_rewind fails to update target control file in one scenario
  In-Reply-To: <20160428112850.GA71376@alvherre.pgsql>
  References: <CAB7nPqRoXquAKhc4605JDU0zXOxPPiwiz3DGeOYWaSN-wT45aw@mail.gmail.com> <20160428112850.GA71376@alvherre.pgsql>

* 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