Maintain ThisTimeLineID correctly in checkpointer
authorSimon Riggs <simon@2ndQuadrant.com>
Tue, 21 May 2013 20:17:04 +0000 (21:17 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Tue, 21 May 2013 20:17:04 +0000 (21:17 +0100)
commit75a192638f93636a144a02461baae90b9fe98fd7
treea34c0511487fe9c71e46932f80ac61ffba73697f
parent8955dac2518b47cf902c22e972426309217c7d8a
Maintain ThisTimeLineID correctly in checkpointer

checkpointer needs to reset ThisTimeLineID after
a restartpoint to allow installing/recycling new
WAL files. If recovery has already ended this
would leave ThisTimeLineID set incorrectly and
so we must reset it otherwise later checkpoints
do not have the correct timeline.

Bug report by Heikki Linnakangas.
Further investigation by Heikki and myself.
src/backend/access/transam/xlog.c