postgresql/src/backend/access
Heikki Linnakangas ee994272ca Delay reading timeline history file until it's fetched from master.
Streaming replication can fetch any missing timeline history files from the
master, but recovery would read the timeline history file for the target
timeline before reading the checkpoint record, and before walreceiver has
had a chance to fetch it from the master. Delay reading it, and the sanity
checks involving timeline history, until after reading the checkpoint
record.

There is at least one scenario where this makes a difference: if you take
a base backup from a standby server right after a timeline switch, the
WAL segment containing the initial checkpoint record will begin with an
older timeline ID. Without the timeline history file, recovering that file
will fail as the older timeline ID is not recognized to be an ancestor of
the target timeline. If you try to recover from such a backup, using only
streaming replication to fetch the WAL, this patch is required for that to
work.
2013-01-03 10:41:58 +02:00
..
common Update copyrights for 2013 2013-01-01 17:15:01 -05:00
gin Update copyrights for 2013 2013-01-01 17:15:01 -05:00
gist Update copyrights for 2013 2013-01-01 17:15:01 -05:00
hash Update copyrights for 2013 2013-01-01 17:15:01 -05:00
heap Update copyrights for 2013 2013-01-01 17:15:01 -05:00
index Update copyrights for 2013 2013-01-01 17:15:01 -05:00
nbtree Update copyrights for 2013 2013-01-01 17:15:01 -05:00
rmgrdesc Update copyrights for 2013 2013-01-01 17:15:01 -05:00
spgist Update copyrights for 2013 2013-01-01 17:15:01 -05:00
transam Delay reading timeline history file until it's fetched from master. 2013-01-03 10:41:58 +02:00
Makefile Split out rmgr rm_desc functions into their own files 2012-11-28 13:01:15 -03:00