Commit the reasonably uncontroversial parts of J.R. Nield's PITR patch, to
authorTom Lane <[email protected]>
Wed, 11 Feb 2004 22:55:26 +0000 (22:55 +0000)
committerTom Lane <[email protected]>
Wed, 11 Feb 2004 22:55:26 +0000 (22:55 +0000)
commitc3c09be34b6b0d7892f1087a23fc6eb93f3c4f04
tree53331a1f14775c903a6b520f3344b533f9f275ab
parent0cb117eb33558bc779df833480958a97227dcbc2
Commit the reasonably uncontroversial parts of J.R. Nield's PITR patch, to
wit: Add a header record to each WAL segment file so that it can be reliably
identified.  Avoid splitting WAL records across segment files (this is not
strictly necessary, but makes it simpler to incorporate the header records).
Make WAL entries for file creation, deletion, and truncation (as foreseen but
never implemented by Vadim).  Also, add support for making XLOG_SEG_SIZE
configurable at compile time, similarly to BLCKSZ.  Fix a couple bugs I
introduced in WAL replay during recent smgr API changes.  initdb is forced
due to changes in pg_control contents.
13 files changed:
src/backend/access/transam/xact.c
src/backend/access/transam/xlog.c
src/backend/access/transam/xlogutils.c
src/backend/storage/smgr/md.c
src/backend/storage/smgr/smgr.c
src/bin/pg_controldata/pg_controldata.c
src/bin/pg_resetxlog/pg_resetxlog.c
src/include/access/xact.h
src/include/access/xlog.h
src/include/access/xlogutils.h
src/include/catalog/pg_control.h
src/include/pg_config_manual.h
src/include/storage/smgr.h