OSDN Git Service

Implement archive_timeout feature to force xlog file switches to occur no more
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 17 Aug 2006 23:04:10 +0000 (23:04 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 17 Aug 2006 23:04:10 +0000 (23:04 +0000)
commite8ea9e9587f096fdfbd4e451e2e88afee9009902
tree0aab256d965b30fa3db37acefd468e5504a8683b
parentbb764e94ce98c01924879288bd14e76e7c913128
Implement archive_timeout feature to force xlog file switches to occur no more
than N seconds apart.  This allows a simple, if not very high performance,
means of guaranteeing that a PITR archive is no more than N seconds behind
real time.  Also make pg_current_xlog_location return the WAL Write pointer,
add pg_current_xlog_insert_location to return the Insert pointer, and fix
pg_xlogfile_name_offset to return its results as a two-element record instead
of a smashed-together string, as per recent discussion.

Simon Riggs
doc/src/sgml/backup.sgml
doc/src/sgml/config.sgml
doc/src/sgml/func.sgml
src/backend/access/transam/xlog.c
src/backend/postmaster/bgwriter.c
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample
src/include/access/xlog.h
src/include/access/xlog_internal.h
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h