pgsql: Switch timelines if we crash soon after promotion.

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Switch timelines if we crash soon after promotion.
Date: 2013-01-31 19:31:42
Message-ID: E1U0zrK-0007vx-Kd@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Switch timelines if we crash soon after promotion.
Previous patch to skip checkpoints at end of recovery didn't
correctly perform crash recovery, fumbling the timeline switch.
Now we record the minRecoveryPointTLI of the newly selected
timeline, so that we crash recover to the correct timeline.

Bug report from Fujii Masao, investigated by me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/3f0ab052330905f1ad2183684e75e6a2cbfa0c76

Modified Files
--------------
src/backend/access/transam/xlog.c | 38 ++++++++++++++++++++++++++++++++++++-
1 files changed, 37 insertions(+), 1 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Simon Riggs 2013-01-31 19:33:53 Re: pgsql: Fast promote mode skips checkpoint at end of recovery.
Previous Message Tom Lane 2013-01-31 17:12:38 pgsql: Reject nonzero day fields in AT TIME ZONE INTERVAL functions.