Skip to content

Commit 4334289

Browse files
Improve docs for timing and skipping of checkpoints
Greg Smith
1 parent 7e3bf99 commit 4334289

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

doc/src/sgml/wal.sgml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,8 +424,15 @@
424424
linkend="guc-checkpoint-segments"> log segments, or every <xref
425425
linkend="guc-checkpoint-timeout"> seconds, whichever comes first.
426426
The default settings are 3 segments and 300 seconds (5 minutes), respectively.
427-
It is also possible to force a checkpoint by using the SQL command
428-
<command>CHECKPOINT</command>.
427+
In cases where there are little or no writes to the WAL, checkpoints will be
428+
skipped even if checkpoint_timeout has passed. At least one new WAL segment
429+
must have been created before an automatic checkpoint occurs. The time
430+
between checkpoints and when new WAL segments are created are not related
431+
in any other way. If file-based WAL shipping is being used and you want to
432+
bound how often files are sent to standby server, to reduce potential data
433+
loss you should adjust archive_timeout parameter rather than the checkpoint
434+
parameters. It is also possible to force a checkpoint by using the SQL
435+
command <command>CHECKPOINT</command>.
429436
</para>
430437

431438
<para>

0 commit comments

Comments
 (0)