]> granicus.if.org Git - postgresql/commit
Fast promote mode skips checkpoint at end of recovery.
authorSimon Riggs <simon@2ndQuadrant.com>
Tue, 29 Jan 2013 00:06:15 +0000 (00:06 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Tue, 29 Jan 2013 00:06:15 +0000 (00:06 +0000)
commitfd4ced5230162b50a5c9d33b4bf9cfb1231aa62e
tree2885c42307d960d313165dc1faa5cb34ff59eb5f
parentee22c55f5ad2e7b7032cd6c0243254d84d4496c7
Fast promote mode skips checkpoint at end of recovery.
pg_ctl promote -m fast will skip the checkpoint at end of recovery so that we
can achieve very fast failover when the apply delay is low. Write new WAL record
XLOG_END_OF_RECOVERY to allow us to switch timeline correctly for downstream log
readers. If we skip synchronous end of recovery checkpoint we request a normal
spread checkpoint so that the window of re-recovery is low.

Simon Riggs and Kyotaro Horiguchi, with input from Fujii Masao.
Review by Heikki Linnakangas
src/backend/access/rmgrdesc/xlogdesc.c
src/backend/access/transam/xlog.c
src/bin/pg_ctl/pg_ctl.c
src/include/access/xlog_internal.h
src/include/catalog/pg_control.h