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

Commitf359516

Browse files
committed
Add cross-reference from wal_level to hot_standby setting. Update
the PITR documentation to mention that you need to set wal_level to'archive' or 'hot_standby', to enable WAL archiving. Per Simon's request.
1 parent609a63f commitf359516

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

‎doc/src/sgml/backup.sgml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.154 2010/04/29 21:49:03 tgl Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.155 2010/05/03 09:14:16 heikki Exp $ -->
22

33
<chapter id="backup">
44
<title>Backup and Restore</title>
@@ -550,8 +550,9 @@ tar -cf backup.tar /usr/local/pgsql/data
550550
</para>
551551

552552
<para>
553-
To enable WAL archiving, set the <xref
554-
linkend="guc-archive-mode"> configuration parameter to <literal>on</>,
553+
To enable WAL archiving, set the <xref linkend="guc-wal-level">
554+
configuration parameter to <literal>archive</> (or <literal>hot_standby</>),
555+
<xref linkend="guc-archive-mode"> to <literal>on</>,
555556
and specify the shell command to use in the <xref
556557
linkend="guc-archive-command"> configuration parameter. In practice
557558
these settings will always be placed in the
@@ -694,7 +695,7 @@ archive_command = 'test ! -f /mnt/server/archivedir/%f &amp;&amp; cp %p /mnt/ser
694695
linkend="populate-pitr">. If archiving or streaming replication were
695696
turned on during execution of one of these statements, WAL would not
696697
contain enough information for archive recovery. (Crash recovery is
697-
unaffected.) For this reason,these parameters can only be changed at
698+
unaffected.) For this reason,<varname>wal_level</> can only be changed at
698699
server start. However, <varname>archive_command</> can be changed with a
699700
configuration file reload. If you wish to temporarily stop archiving,
700701
one way to do it is to set <varname>archive_command</> to the empty
@@ -1180,7 +1181,8 @@ restore_command = 'cp /mnt/server/archivedir/%f %p'
11801181
</para>
11811182

11821183
<para>
1183-
To prepare for standalone hot backups, set <varname>archive_mode</> to
1184+
To prepare for standalone hot backups, set <varname>wal_level</> to
1185+
<literal>archive</> (or <literal>hot_standby</>), <varname>archive_mode</> to
11841186
<literal>on</>, and set up an <varname>archive_command</> that performs
11851187
archiving only when a <emphasis>switch file</> exists. For example:
11861188
<programlisting>

‎doc/src/sgml/config.sgml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.274 2010/05/02 11:32:53 sriggs Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.275 2010/05/03 09:14:17 heikki Exp $ -->
22

33
<chapter Id="runtime-config">
44
<title>Server Configuration</title>
@@ -1384,7 +1384,9 @@ SET ENABLE_SEQSCAN TO OFF;
13841384
with <literal>archive</>, plus information needed to reconstruct
13851385
the status of running transactions from the WAL. To enable read-only
13861386
queries on a standby server, <varname>wal_level</> must be set to
1387-
<literal>hot_standby</> on the primary. It is thought that there is
1387+
<literal>hot_standby</> on the primary, and
1388+
<xref linkend="guc-hot-standby"> must be enabled in the standby. It is
1389+
thought that there is
13881390
little measurable difference in performance between using
13891391
<literal>hot_standby</> and <literal>archive</> levels, so feedback
13901392
is welcome if any production impacts are noticeable.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp