pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Teodor Sigaev <teodor@sigaev.ru>
To: pgsql-committers@postgresql.org
Subject: pgsql: Use pg_rewind when target timeline was switched
Date: Tue, 01 Dec 2015 15:56:58 +0000
Message-ID: <E1a3nIY-0001Q9-5S@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Use pg_rewind when target timeline was switched

Allow pg_rewind to work when target timeline was switched. Now
user can return promoted standby to old master.

Target timeline history becomes a global variable. Index
in target timeline history is used in function interfaces instead of
specifying TLI directly. Thus, SimpleXLogPageRead() can easily start
reading XLOGs from next timeline when current timeline ends.

Author: Alexander Korotkov
Review: Michael Paquier

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/e50cda78404d6400b1326a996a4fabb144871151

Modified Files
--------------
doc/src/sgml/ref/pg_rewind.sgml |   18 ++--
src/bin/pg_rewind/Makefile      |    2 +-
src/bin/pg_rewind/parsexlog.c   |   39 +++++---
src/bin/pg_rewind/pg_rewind.c   |  189 ++++++++++++++++++++++++++++-----------
src/bin/pg_rewind/pg_rewind.h   |   10 ++-
5 files changed, 181 insertions(+), 77 deletions(-)


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


Message-ID: <E1a3nIY-0001Q9-5S@gemulon.postgresql.org>
Permalink:  ../E1a3nIY-0001Q9-5S@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1a3nIY-0001Q9-5S@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: teodor@sigaev.ru
  Subject: Re: pgsql: Use pg_rewind when target timeline was switched
  In-Reply-To: <E1a3nIY-0001Q9-5S@gemulon.postgresql.org>
  References: <E1a3nIY-0001Q9-5S@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