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: Fri, 29 Apr 2016 08:42:16 -0300
Message-ID: <20160429114216.GA126732@alvherre.pgsql> (raw)
In-Reply-To: <CAB7nPqTKy-q1CYxJ9sX9bK-A4uqW=BkKD_nxxAK1tb07mgtuzQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Michael Paquier wrote:
> On Thu, Apr 28, 2016 at 8:28 PM, Alvaro Herrera
> <alvherre@2ndquadrant.com> wrote:

> > 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?
> 
> That would be actually creating a slot before the last common
> checkpoint before promotion, which is a bit more tricky to evaluate.
> With luck, perhaps both of them would be on the same segment, but
> there is no way to be sure about that... It seems to me that what we
> are looking for here is a way to tell through
> pg_create_physical_replication_slot to reserve WAL from a position
> that caller has decided.

Well, that sounds like just a SMOP, doesn't it?

-- 
Á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: <20160429114216.GA126732@alvherre.pgsql>
Permalink:  ../20160429114216.GA126732@alvherre.pgsql/
Also on:    postgresql.org/message-id/20160429114216.GA126732@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: <20160429114216.GA126732@alvherre.pgsql>
  References: <CAB7nPqTKy-q1CYxJ9sX9bK-A4uqW=BkKD_nxxAK1tb07mgtuzQ@mail.gmail.com> <20160429114216.GA126732@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