• Teodor Sigaev's avatar
    Use pg_rewind when target timeline was switched · e50cda78
    Teodor Sigaev authored
    Allow pg_rewind to work when target timeline was switched. Now
    user can return promoted standby to old master.
    
    Target timeline history becomes a global variable. Index
    in target timeline history is used in function interfaces instead of
    specifying TLI directly. Thus, SimpleXLogPageRead() can easily start
    reading XLOGs from next timeline when current timeline ends.
    
    Author: Alexander Korotkov
    Review: Michael Paquier
    e50cda78
pg_rewind.c 18.1 KB