]> granicus.if.org Git - postgresql/commit
Teach xlogreader to follow timeline switches
authorSimon Riggs <simon@2ndQuadrant.com>
Wed, 22 Mar 2017 07:05:12 +0000 (07:05 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Wed, 22 Mar 2017 07:05:12 +0000 (07:05 +0000)
commit1148e22a82edc96172fc78855da392b6f0015c88
treeba60e49124bf0eb9f003ee11f2d2a275dffddb1b
parent9ca2dd578db4086ae8a6eb6fd82ac376b7b2804e
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
src/backend/access/transam/xlogutils.c
src/backend/replication/logical/logicalfuncs.c
src/backend/replication/walsender.c
src/include/access/xlogreader.h
src/include/access/xlogutils.h
src/test/recovery/Makefile
src/test/recovery/t/010_logical_decoding_timelines.pl [new file with mode: 0644]