Fast promote mode skips checkpoint at end of recovery.
Simon Riggs <simon@2ndQuadrant.com>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/rmgrdesc/xlogdesc.c | modified | +10 −0 |
| src/backend/access/transam/xlog.c | modified | +163 −29 |
| src/bin/pg_ctl/pg_ctl.c | modified | +15 −3 |
| src/include/access/xlog_internal.h | modified | +6 −0 |
| src/include/catalog/pg_control.h | modified | +1 −0 |