pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Simon Riggs <simon@2ndQuadrant.com>
To: pgsql-committers@postgresql.org
Subject: pgsql: Teach xlogreader to follow timeline switches
Date: Wed, 22 Mar 2017 07:07:29 +0000
Message-ID: <E1cqaMj-0004A9-0L@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Teach xlogreader to follow timeline switches

Uses page-based mechanism to ensure we’re using the correct timeline.

Tests are included to exercise the functionality using a cold disk-level copy
of the master that's started up as a replica with slots intact, but the
intended use of the functionality is with later features.

Craig Ringer, reviewed by Simon Riggs and Andres Freund

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/1148e22a82edc96172fc78855da392b6f0015c88

Modified Files
--------------
src/backend/access/transam/xlogutils.c             | 215 +++++++++++++++++++--
src/backend/replication/logical/logicalfuncs.c     |   8 +-
src/backend/replication/walsender.c                |  11 +-
src/include/access/xlogreader.h                    |  16 ++
src/include/access/xlogutils.h                     |   3 +
src/test/recovery/Makefile                         |   2 +
.../recovery/t/010_logical_decoding_timelines.pl   | 130 +++++++++++++
7 files changed, 365 insertions(+), 20 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: <E1cqaMj-0004A9-0L@gemulon.postgresql.org>
Permalink:  ../E1cqaMj-0004A9-0L@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1cqaMj-0004A9-0L@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: simon@2ndQuadrant.com
  Subject: Re: pgsql: Teach xlogreader to follow timeline switches
  In-Reply-To: <E1cqaMj-0004A9-0L@gemulon.postgresql.org>
  References: <E1cqaMj-0004A9-0L@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