Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 84abea7

Browse files
committed
Add pause_at_recovery_target to recovery.conf.sample; improve docs.
Fujii Masao, but with the proposed behavior change reverted, and the rest adjusted accordingly.
1 parent 9a56dc3 commit 84abea7

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

doc/src/sgml/recovery-config.sgml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
261261
<listitem>
262262
<para>
263263
Specifies whether recovery should pause when the recovery target
264-
is reached. The default is true, if a recovery target is set.
264+
is reached. The default is true.
265265
This is intended to allow queries to be executed against the
266266
database to check if this recovery target is the most desirable
267267
point for recovery. The paused state can be resumed by using
@@ -272,6 +272,10 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
272272
recovery target settings to a later target and restart to
273273
continue recovery.
274274
</para>
275+
<para>
276+
This setting has no effect if <xref linkend="guc-hot-standby"> is not
277+
enabled, or if no recovery target is set.
278+
</para>
275279
</listitem>
276280
</varlistentry>
277281

src/backend/access/transam/recovery.conf.sample

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,14 @@
8787
#
8888
#recovery_target_timeline = 'latest'
8989
#
90+
#
91+
# If pause_at_recovery_target is enabled, recovery will pause when
92+
# the recovery target is reached. The pause state will continue until
93+
# pg_xlog_replay_resume() is called. This setting has no effect if
94+
# hot standby is not enabled, or if no recovery target is set.
95+
#
96+
#pause_at_recovery_target = true
97+
#
9098
#---------------------------------------------------------------------------
9199
# STANDBY SERVER PARAMETERS
92100
#---------------------------------------------------------------------------

0 commit comments

Comments
 (0)