1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Document that archive_timeout will force new WAL files even if a single

checkpoint has happened, and recommend adjusting checkpoint_timeout to
reduce the impact of this.
This commit is contained in:
Bruce Momjian
2010-02-05 23:37:43 +00:00
parent ef51fa505c
commit 4b113d9cdc
2 changed files with 11 additions and 4 deletions

View File

@ -38,7 +38,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/postmaster/bgwriter.c,v 1.66 2010/01/15 09:19:02 heikki Exp $
* $PostgreSQL: pgsql/src/backend/postmaster/bgwriter.c,v 1.67 2010/02/05 23:37:43 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -543,7 +543,10 @@ BackgroundWriterMain(void)
/*
* CheckArchiveTimeout -- check for archive_timeout and switch xlog files
* if needed
*
* This will switch to a new WAL file and force an archive file write
* if any activity is recorded in the current WAL file, including just
* a single checkpoint record.
*/
static void
CheckArchiveTimeout(void)