Teach xlogreader to follow timeline switches

Simon Riggs <simon@2ndQuadrant.com>

Commit: 1148e22a82edc96172fc78855da392b6f0015c88
Author: Simon Riggs <simon@2ndQuadrant.com>
Date: 2017-03-22T07:05:12Z
Releases: 10.0
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

Files