From: | Simon Riggs <simon(at)2ndQuadrant(dot)com> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Teach xlogreader to follow timeline switches |
Date: | 2017-03-22 07:07:29 |
Message-ID: | E1cqaMj-0004A9-0L@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2017-03-22 10:48:48 | Re: [COMMITTERS] pgsql: Fix and simplify check for whether we're running as Windows serv |
Previous Message | Peter Eisentraut | 2017-03-22 04:23:10 | pgsql: Avoid Perl warning |