Skip site navigation (1) Skip section navigation (2)

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

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 timelinehis
Date: 2012-12-04 15:29:23
Message-ID: E1TfuR1-0000eW-2g@gemulon.postgresql.org (view raw or flat)
Thread:
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(-)


pgsql-committers by date

Next:From: Heikki LinnakangasDate: 2012-12-04 15:30:35
Subject: pgsql: Downgrade a status message from LOG to DEBUG2.
Previous:From: Bruce MomjianDate: 2012-12-04 14:52:06
Subject: pgsql: In initdb.c,move auth warning code into main() from secondary f

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group