aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2012-01-27 09:09:50 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2012-01-27 09:17:37 +0200
commit2e92b5872faeb01f1865bb00556ec7be0ef006ee (patch)
tree6146119bc80b63748a98668b848193019cd16e5e
parent3946c281613e549d5686ad3f5b298549b0eb0efe (diff)
downloadpostgresql-2e92b5872faeb01f1865bb00556ec7be0ef006ee.tar.gz
postgresql-2e92b5872faeb01f1865bb00556ec7be0ef006ee.zip
Mention in the docs that bgwriter now sleeps longer when it has no work to do.
-rw-r--r--doc/src/sgml/config.sgml14
1 files changed, 8 insertions, 6 deletions
diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml
index 309b6a54615..3a843217602 100644
--- a/doc/src/sgml/config.sgml
+++ b/doc/src/sgml/config.sgml
@@ -1322,12 +1322,14 @@ SET ENABLE_SEQSCAN TO OFF;
background writer. In each round the writer issues writes
for some number of dirty buffers (controllable by the
following parameters). It then sleeps for <varname>bgwriter_delay</>
- milliseconds, and repeats. The default value is 200 milliseconds
- (<literal>200ms</>). Note that on many systems, the effective
- resolution of sleep delays is 10 milliseconds; setting
- <varname>bgwriter_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
+ milliseconds, and repeats. When there are no dirty buffers in the
+ buffer pool, though, it goes into a longer sleep regardless of
+ <varname>bgwriter_delay</>. The default value is 200
+ milliseconds (<literal>200ms</>). Note that on many systems, the
+ effective resolution of sleep delays is 10 milliseconds; setting
+ <varname>bgwriter_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
<filename>postgresql.conf</> file or on the server command line.
</para>
</listitem>