Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcdb2577

Browse files
committed
doc: improve wal_level docs for the 'minimal' level
Reported-by: David G. JohnstonDiscussion:https://postgr.es/m/CAKFQuwZ24UcfkoyLLSW3PMGQATomOcw1nuYFRuMev-NoOF+mYw@mail.gmail.comAuthor: David G. JohnstonBackpatch-through: 14, partial to 13
1 parent89512ee commitcdb2577

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
@@ -2764,9 +2764,10 @@ include_dir 'conf.d'
27642764
levels. This parameter can only be set at server start.
27652765
</para>
27662766
<para>
2767-
In <literal>minimal</literal> level, no information is logged for
2768-
permanent relations for the remainder of a transaction that creates or
2769-
rewrites them. This can make operations much faster (see
2767+
The <literal>minimal</literal> level generates the least WAL
2768+
volume. It logs no row information for permanent relations
2769+
in transactions that create or
2770+
rewrite them. This can make operations much faster (see
27702771
<xref linkend="populate-pitr"/>). Operations that initiate this
27712772
optimization include:
27722773
<simplelist>
@@ -2778,19 +2779,20 @@ include_dir 'conf.d'
27782779
<member><command>REINDEX</command></member>
27792780
<member><command>TRUNCATE</command></member>
27802781
</simplelist>
2781-
But minimal WAL does not contain enough information to reconstruct the
2782-
data from a base backup and the WAL logs, so <literal>replica</literal> or
2783-
higher must be used to enable WAL archiving
2784-
(<xref linkend="guc-archive-mode"/>) and streaming replication.
2782+
However, minimal WAL does not contain sufficient information for
2783+
point-in-time recovery, so <literal>replica</literal> or
2784+
higher must be used to enable continuous archiving
2785+
(<xref linkend="guc-archive-mode"/>) and streaming binary replication.
2786+
In fact, the server will not even start in this mode if
2787+
<varname>max_wal_senders</varname> is non-zero.
27852788
Note that changing <varname>wal_level</varname> to
2786-
<literal>minimal</literal> makes any base backups taken before
2787-
unavailable for archive recovery and standby server, which may
2788-
lead to data loss.
2789+
<literal>minimal</literal> makes previous base backups unusable
2790+
for point-in-time recovery and standby servers.
27892791
</para>
27902792
<para>
27912793
In <literal>logical</literal> level, the same information is logged as
2792-
with <literal>replica</literal>, plus information needed to allow
2793-
extracting logical change sets from the WAL. Using a level of
2794+
with <literal>replica</literal>, plus information needed to
2795+
extract logical change sets from the WAL. Using a level of
27942796
<literal>logical</literal> will increase the WAL volume, particularly if many
27952797
tables are configured for <literal>REPLICA IDENTITY FULL</literal> and
27962798
many <command>UPDATE</command> and <command>DELETE</command> statements are

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp