]> granicus.if.org Git - postgresql/commit
Fix checkpoint after fast promotion.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 11 Feb 2013 20:16:56 +0000 (22:16 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 11 Feb 2013 20:22:08 +0000 (22:22 +0200)
commitb669f416cee77ef9025b80f9c4201688578447d1
tree7e77dd587bcb3d5631e512c0971c9788c2694dc7
parent7803e9327db3788f68d820c19f4081afb79edd12
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.
src/backend/access/transam/xlog.c