pgsql: Write exact xlog position of timeline switch in the timeline his

Lists: pgsql-committers
From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Write exact xlog position of timeline switch in the timeline his
Date: 2012-12-04 15:29:23
Message-ID: E1TfuR1-0000eW-2g@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/32f4de0adfb2037f1402e40b54a5c4043227363f

Modified Files
--------------
src/backend/access/transam/timeline.c | 144 +++++++++++++++++++++++-----
src/backend/access/transam/xlog.c | 173 ++++++++++++++++++++------------
src/include/access/timeline.h | 20 ++++-
3 files changed, 247 insertions(+), 90 deletions(-)