]> granicus.if.org Git - postgresql/commit
Switch timelines if we crash soon after promotion.
authorSimon Riggs <simon@2ndQuadrant.com>
Thu, 31 Jan 2013 19:29:32 +0000 (19:29 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Thu, 31 Jan 2013 19:29:32 +0000 (19:29 +0000)
commit3f0ab052330905f1ad2183684e75e6a2cbfa0c76
treec8721266bad550fb7faa38f260cc3f30286edf93
parent9afc58396af75d59ea2eec467724faf68fe63890
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.
src/backend/access/transam/xlog.c