From ad4295728e04f4107f4dcbbee4950e526becb95d Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 24 Jul 2007 04:54:09 +0000 Subject: Create a new dedicated Postgres process, "wal writer", which exists to write and fsync WAL at convenient intervals. For the moment it just tries to offload this work from backends, but soon it will be responsible for guaranteeing a maximum delay before asynchronously-committed transactions will be flushed to disk. This is a portion of Simon Riggs' async-commit patch, committed to CVS separately because a background WAL writer seems like it might be a good idea independently of the async-commit feature. I rebased walwriter.c on bgwriter.c because it seemed like a more appropriate way of handling signals; while the startup/shutdown logic in postmaster.c is more like autovac because we want walwriter to quit before we start the shutdown checkpoint. --- doc/src/sgml/config.sgml | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index a3331bdef6e..0e49ba32178 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -1,4 +1,4 @@ - + Server Configuration @@ -1413,7 +1413,7 @@ SET ENABLE_SEQSCAN TO OFF; - + wal_buffers (integer) @@ -1438,7 +1438,27 @@ SET ENABLE_SEQSCAN TO OFF; - + + + wal_writer_delay (integer) + + wal_writer_delay configuration parameter + + + + Specifies the delay between activity rounds for the WAL writer. + In each round the writer will flush WAL to disk. It then sleeps for + wal_writer_delay milliseconds, and repeats. The default + value is 200 milliseconds (200ms). Note that on many + systems, the effective resolution of sleep delays is 10 milliseconds; + setting wal_writer_delay to a value that is not a multiple + of 10 might have the same results as setting it to the next higher + multiple of 10. This parameter can only be set in the + postgresql.conf file or on the server command line. + + + + commit_delay (integer) @@ -1521,7 +1541,7 @@ SET ENABLE_SEQSCAN TO OFF; - Specifies the target length of checkpoints, as a fraction of + Specifies the target length of checkpoints, as a fraction of the checkpoint interval. The default is 0.5. This parameter can only be set in the postgresql.conf -- cgit v1.2.3