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
Showing
- src/backend/access/rmgrdesc/xlogdesc.c 10 additions, 0 deletionssrc/backend/access/rmgrdesc/xlogdesc.c
- src/backend/access/transam/xlog.c 163 additions, 29 deletionssrc/backend/access/transam/xlog.c
- src/bin/pg_ctl/pg_ctl.c 15 additions, 3 deletionssrc/bin/pg_ctl/pg_ctl.c
- src/include/access/xlog_internal.h 6 additions, 0 deletionssrc/include/access/xlog_internal.h
- src/include/catalog/pg_control.h 1 addition, 0 deletionssrc/include/catalog/pg_control.h
Loading
Please register or sign in to comment