Skip to content

Commit 2e92b58

Browse files
committed
Mention in the docs that bgwriter now sleeps longer when it has no work to do.
1 parent 3946c28 commit 2e92b58

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

doc/src/sgml/config.sgml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,12 +1322,14 @@ SET ENABLE_SEQSCAN TO OFF;
13221322
background writer. In each round the writer issues writes
13231323
for some number of dirty buffers (controllable by the
13241324
following parameters). It then sleeps for <varname>bgwriter_delay</>
1325-
milliseconds, and repeats. The default value is 200 milliseconds
1326-
(<literal>200ms</>). Note that on many systems, the effective
1327-
resolution of sleep delays is 10 milliseconds; setting
1328-
<varname>bgwriter_delay</> to a value that is not a multiple of
1329-
10 might have the same results as setting it to the next higher
1330-
multiple of 10. This parameter can only be set in the
1325+
milliseconds, and repeats. When there are no dirty buffers in the
1326+
buffer pool, though, it goes into a longer sleep regardless of
1327+
<varname>bgwriter_delay</>. The default value is 200
1328+
milliseconds (<literal>200ms</>). Note that on many systems, the
1329+
effective resolution of sleep delays is 10 milliseconds; setting
1330+
<varname>bgwriter_delay</> to a value that is not a multiple of 10
1331+
might have the same results as setting it to the next higher multiple
1332+
of 10. This parameter can only be set in the
13311333
<filename>postgresql.conf</> file or on the server command line.
13321334
</para>
13331335
</listitem>

0 commit comments

Comments
 (0)