Skip to content

Commit 915116b

Browse files
Correct WAL space calculation formula in docs.
Error pointed out by Fujii Masao, though not his patch.
1 parent 2317711 commit 915116b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/src/sgml/wal.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -450,9 +450,9 @@
450450

451451
<para>
452452
There will always be at least one WAL segment file, and will normally
453-
not be more than (2 + <varname>checkpoint_completion_target</varname>) * <varname>checkpoint_segments</varname> + 1
454-
or <varname>checkpoint_segments</> + <xref linkend="guc-wal-keep-segments"> + 1
455-
files. Each segment file is normally 16 MB (though this size can be
453+
not be more files than the higher of <xref linkend="guc-wal-keep-segments"> or
454+
(2 + <varname>checkpoint_completion_target</varname>) * <varname>checkpoint_segments</varname> + 1.
455+
Each segment file is normally 16 MB (though this size can be
456456
altered when building the server). You can use this to estimate space
457457
requirements for <acronym>WAL</acronym>.
458458
Ordinarily, when old log segment files are no longer needed, they

0 commit comments

Comments
 (0)