]> granicus.if.org Git - postgresql/commit
Use pg_rewind when target timeline was switched
authorTeodor Sigaev <teodor@sigaev.ru>
Tue, 1 Dec 2015 15:56:44 +0000 (18:56 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Tue, 1 Dec 2015 15:56:44 +0000 (18:56 +0300)
commite50cda78404d6400b1326a996a4fabb144871151
tree2e75499dc681f7628bdb401c03ba0c88727c5a22
parent0e0776bc99553ff229e0d536ed8c78ab9db62464
Use pg_rewind when target timeline was switched

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
doc/src/sgml/ref/pg_rewind.sgml
src/bin/pg_rewind/Makefile
src/bin/pg_rewind/parsexlog.c
src/bin/pg_rewind/pg_rewind.c
src/bin/pg_rewind/pg_rewind.h