pgsql: Fix checkpoint after fast promotion. - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Fix checkpoint after fast promotion.
Date
Msg-id E1U4zu5-00016u-Mb@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix checkpoint after fast promotion.

The intention was to request a regular online checkpoint immediately after
end of recovery, when performing "fast promotion". However, because the
checkpoint was requested before other backends were allowed to write WAL,
the checkpointer process performed a restartpoint rather than a checkpoint.

Delay the RequestCheckPoint call until after recovery has truly ended, so
that you get a real checkpoint.

Branch
------
master

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

Modified Files
--------------
src/backend/access/transam/xlog.c |   31 ++++++++++++++++---------------
1 files changed, 16 insertions(+), 15 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgsql: Include previous TLI in end-of-recovery and shutdown checkpoint
Next
From: Heikki Linnakangas
Date:
Subject: pgsql: Support unlogged GiST index.