pgsql: Fast promote mode skips checkpoint at end of recovery. - Mailing list pgsql-committers

From Simon Riggs
Subject pgsql: Fast promote mode skips checkpoint at end of recovery.
Date
Msg-id E1TzyjJ-0007rb-VB@gemulon.postgresql.org
Whole thread Raw
Responses Re: pgsql: Fast promote mode skips checkpoint at end of recovery.
Re: pgsql: Fast promote mode skips checkpoint at end of recovery.
List pgsql-committers
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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/fd4ced5230162b50a5c9d33b4bf9cfb1231aa62e

Modified Files
--------------
src/backend/access/rmgrdesc/xlogdesc.c |   10 ++
src/backend/access/transam/xlog.c      |  192 +++++++++++++++++++++++++++-----
src/bin/pg_ctl/pg_ctl.c                |   18 +++-
src/include/access/xlog_internal.h     |    6 +
src/include/catalog/pg_control.h       |    1 +
5 files changed, 195 insertions(+), 32 deletions(-)


pgsql-committers by date:

Previous
From: Alvaro Herrera
Date:
Subject: pgsql: DROP OWNED: don't try to drop tablespaces/databases
Next
From: Heikki Linnakangas
Date:
Subject: pgsql: Skip truncating ON COMMIT DELETE ROWS temp tables, if the transa