• Heikki Linnakangas's avatar
    Don't set ThisTimeLineID in checkpointer & bgwriter during recovery. · 1a11d460
    Heikki Linnakangas authored
    We used to set it to the current recovery target timeline, but the recovery
    target timeline can change during recovery, leaving ThisTimeLineID at an
    old value. That seems worse than always leaving it at zero to begin with.
    
    AFAICS there was no good reason to set it in the first place. ThisTimeLineID
    is not needed in checkpointer or bgwriter process, until it's time to write
    the end-of-recovery checkpoint, and at that point ThisTimeLineID is updated
    anyway.
    1a11d460
xlog.c 304 KB