Write exact xlog position of timeline switch in the timeline history file.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 32f4de0adfb2037f1402e40b54a5c4043227363f
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2012-12-04T15:29:07Z
Releases: 9.3.0
Write exact xlog position of timeline switch in the timeline history file.

This allows us to do some more rigorous sanity checking for various
incorrect point-in-time recovery scenarios, and provides more information
for debugging purposes. It will also come handy in the upcoming patch to
allow timeline switches to be replicated by streaming replication.

Files

PathChange+/−
src/backend/access/transam/timeline.c modified +120 −24
src/backend/access/transam/xlog.c modified +108 −65
src/include/access/timeline.h modified +19 −1