Make recovery from WAL be restartable, by executing a checkpoint-like
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 7 Aug 2006 16:57:57 +0000 (16:57 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 7 Aug 2006 16:57:57 +0000 (16:57 +0000)
commite002836913ce69ca3e501a6d2c42296f1d103998
treec678bfba6916c7daa85c38f659cccae629867aac
parent977ac90001c0188289f3b20eac3720fc6b26f180
Make recovery from WAL be restartable, by executing a checkpoint-like
operation every so often.  This improves the usefulness of PITR log
shipping for hot standby: formerly, if the standby server crashed, it
was necessary to restart it from the last base backup and replay all
the WAL since then.  Now it will only need to reread about the same
amount of WAL as the master server would.  The behavior might also
come in handy during a long PITR replay sequence.  Simon Riggs,
with some editorialization by Tom Lane.
12 files changed:
src/backend/access/gin/ginxlog.c
src/backend/access/gist/gistxlog.c
src/backend/access/nbtree/nbtxlog.c
src/backend/access/transam/rmgr.c
src/backend/access/transam/xlog.c
src/bin/pg_controldata/pg_controldata.c
src/bin/pg_resetxlog/pg_resetxlog.c
src/include/access/gin.h
src/include/access/gist_private.h
src/include/access/nbtree.h
src/include/access/xlog_internal.h
src/include/catalog/pg_control.h