diff options
author | Bruce Momjian <bruce@momjian.us> | 2010-02-05 23:37:43 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2010-02-05 23:37:43 +0000 |
commit | 4b113d9cdc8654e3f979497e057c7f9062bfa612 (patch) | |
tree | d98950e743d1bf88332b49069a9206ae9ef72d1e /src | |
parent | ef51fa505ca6433aaf4e7826a79f665ffecd241a (diff) | |
download | postgresql-4b113d9cdc8654e3f979497e057c7f9062bfa612.tar.gz postgresql-4b113d9cdc8654e3f979497e057c7f9062bfa612.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/postmaster/bgwriter.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/backend/postmaster/bgwriter.c b/src/backend/postmaster/bgwriter.c index b51cceea74d..9a3956a5094 100644 --- a/src/backend/postmaster/bgwriter.c +++ b/src/backend/postmaster/bgwriter.c @@ -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) |