• Heikki Linnakangas's avatar
    Track the timeline associated with minRecoveryPoint, for more sanity checks. · 5ce108bf
    Heikki Linnakangas authored
    This allows recovery to notice certain incorrect recovery scenarios.
    If a server has recovered to point X on timeline 5, and you restart
    recovery, it better be on timeline 5 when it reaches point X again, not on
    some timeline with a higher ID. This can happen e.g if you a standby server
    is shut down, a new timeline appears in the WAL archive, and the standby
    server is restarted. It will try to follow the new timeline, which is wrong
    because some WAL on the old timeline was already replayed before shutdown.
    
    Requires an initdb (or at least pg_resetxlog), because this adds a field to
    the control file.
    5ce108bf
pg_resetxlog.c 27.8 KB