1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-13 07:41:39 +03:00

Add checkpoint_warning to warn of excessive checkpoints caused by too

few WAL files.
This commit is contained in:
Bruce Momjian
2002-11-15 02:44:57 +00:00
parent 3779f7fd9f
commit 2986aa6a66
6 changed files with 52 additions and 5 deletions

View File

@ -1,5 +1,5 @@
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.154 2002/11/15 01:57:25 momjian Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.155 2002/11/15 02:44:50 momjian Exp $
-->
<Chapter Id="runtime">
@ -2081,6 +2081,18 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir'
</listitem>
</varlistentry>
<variablelist>
<varlistentry>
<term><varname>CHECKPOINT_WARNING</varname> (<type>integer</type>)</term>
<listitem>
<para>
Send a message to the server logs if checkpoints caused by the
filling of checkpoint segment files happens more frequently than
this number of seconds. Zero turns off the warning.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><varname>COMMIT_DELAY</varname> (<type>integer</type>)</term>
<listitem>

View File

@ -1,4 +1,4 @@
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/wal.sgml,v 1.21 2002/11/02 22:23:01 tgl Exp $ -->
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/wal.sgml,v 1.22 2002/11/15 02:44:54 momjian Exp $ -->
<chapter id="wal">
<title>Write-Ahead Logging (<acronym>WAL</acronym>)</title>
@ -300,6 +300,16 @@
correspondingly increase shared memory usage.
</para>
<para>
Checkpoints are fairly expensive because they force all dirty kernel
buffers to disk using the operating system <literal>sync()</> call.
Busy servers may fill checkpoint segment files too quickly,
causing excessive checkpointing. If such forced checkpoints happen
more frequently than <varname>CHECKPOINT_WARNING</varname> seconds,
a message, will be output to the server logs recommending increasing
<varname>CHECKPOINT_SEGMENTS</varname>.
</para>
<para>
The <varname>COMMIT_DELAY</varname> parameter defines for how many
microseconds the backend will sleep after writing a commit