Skip to content

Commit a8fade6

Browse files
committed
doc: improve wal_level docs for the 'minimal' level
Reported-by: David G. Johnston Discussion: https://postgr.es/m/CAKFQuwZ24UcfkoyLLSW3PMGQATomOcw1nuYFRuMev-NoOF+mYw@mail.gmail.com Author: David G. Johnston Backpatch-through: 14, partial to 13
1 parent ec3530f commit a8fade6

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

doc/src/sgml/config.sgml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2754,9 +2754,10 @@ include_dir 'conf.d'
27542754
levels. This parameter can only be set at server start.
27552755
</para>
27562756
<para>
2757-
In <literal>minimal</literal> level, no information is logged for
2758-
permanent relations for the remainder of a transaction that creates or
2759-
rewrites them. This can make operations much faster (see
2757+
The <literal>minimal</literal> level generates the least WAL
2758+
volume. It logs no row information for permanent relations
2759+
in transactions that create or
2760+
rewrite them. This can make operations much faster (see
27602761
<xref linkend="populate-pitr"/>). Operations that initiate this
27612762
optimization include:
27622763
<simplelist>
@@ -2768,19 +2769,20 @@ include_dir 'conf.d'
27682769
<member><command>REINDEX</command></member>
27692770
<member><command>TRUNCATE</command></member>
27702771
</simplelist>
2771-
But minimal WAL does not contain enough information to reconstruct the
2772-
data from a base backup and the WAL logs, so <literal>replica</literal> or
2773-
higher must be used to enable WAL archiving
2774-
(<xref linkend="guc-archive-mode"/>) and streaming replication.
2772+
However, minimal WAL does not contain sufficient information for
2773+
point-in-time recovery, so <literal>replica</literal> or
2774+
higher must be used to enable continuous archiving
2775+
(<xref linkend="guc-archive-mode"/>) and streaming binary replication.
2776+
In fact, the server will not even start in this mode if
2777+
<varname>max_wal_senders</varname> is non-zero.
27752778
Note that changing <varname>wal_level</varname> to
2776-
<literal>minimal</literal> makes any base backups taken before
2777-
unavailable for archive recovery and standby server, which may
2778-
lead to data loss.
2779+
<literal>minimal</literal> makes previous base backups unusable
2780+
for point-in-time recovery and standby servers.
27792781
</para>
27802782
<para>
27812783
In <literal>logical</literal> level, the same information is logged as
2782-
with <literal>replica</literal>, plus information needed to allow
2783-
extracting logical change sets from the WAL. Using a level of
2784+
with <literal>replica</literal>, plus information needed to
2785+
extract logical change sets from the WAL. Using a level of
27842786
<literal>logical</literal> will increase the WAL volume, particularly if many
27852787
tables are configured for <literal>REPLICA IDENTITY FULL</literal> and
27862788
many <command>UPDATE</command> and <command>DELETE</command> statements are

0 commit comments

Comments
 (0)