@@ -152,16 +152,18 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
152152 <sect1 id="recovery-target-settings">
153153
154154 <title>Recovery Target Settings</title>
155+
155156 <para>
156157 By default, recovery will recover to the end of the WAL log. The
157158 following parameters can be used to specify an earlier stopping point.
158159 At most one of <varname>recovery_target</>,
159160 <varname>recovery_target_name</>, <varname>recovery_target_time</>, or
160- <varname>recovery_target_xid</> can be specified.
161+ <varname>recovery_target_xid</> can be used; if more than one of these
162+ is specified in the configuration file, the last entry will be used.
161163 </para>
162- <variablelist>
163164
164- <varlistentry id="recovery-target" xreflabel="recovery_target_name">
165+ <variablelist>
166+ <varlistentry id="recovery-target" xreflabel="recovery_target">
165167 <term><varname>recovery_target</varname><literal> = 'immediate'</literal>
166168 <indexterm>
167169 <primary><varname>recovery_target</> recovery parameter</primary>
@@ -189,8 +191,8 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
189191 </term>
190192 <listitem>
191193 <para>
192- This parameter specifies the named restore point, created with
193- <function>pg_create_restore_point()</> to which recovery will proceed.
194+ This parameter specifies the named restore point ( created with
195+ <function>pg_create_restore_point()</>) to which recovery will proceed.
194196 </para>
195197 </listitem>
196198 </varlistentry>
@@ -231,13 +233,13 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
231233 </listitem>
232234 </varlistentry>
233235 </variablelist>
236+
234237 <para>
235238 The following options further specify the recovery target, and affect
236239 what happens when the target is reached:
237240 </para>
238241
239242 <variablelist>
240-
241243 <varlistentry id="recovery-target-inclusive"
242244 xreflabel="recovery_target_inclusive">
243245 <term><varname>recovery_target_inclusive</varname> (<type>boolean</type>)
@@ -247,12 +249,12 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
247249 </term>
248250 <listitem>
249251 <para>
250- Specifies whether we stop just after the specified recovery target
252+ Specifies whether to stop just after the specified recovery target
251253 (<literal>true</literal>), or just before the recovery target
252254 (<literal>false</literal>).
253- Applies to both <xref linkend="recovery-target-time">
254- and <xref linkend="recovery-target-xid">, whichever one is
255- specified for this recovery. This indicates whether transactions
255+ Applies when either <xref linkend="recovery-target-time">
256+ or <xref linkend="recovery-target-xid"> is specified.
257+ This setting controls whether transactions
256258 having exactly the target commit time or ID, respectively, will
257259 be included in the recovery. Default is <literal>true</>.
258260 </para>
@@ -280,27 +282,7 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
280282 </listitem>
281283 </varlistentry>
282284
283- <varlistentry id="pause-at-recovery-target"
284- xreflabel="pause_at_recovery_target">
285- <term><varname>pause_at_recovery_target</varname> (<type>boolean</type>)
286- <indexterm>
287- <primary><varname>pause_at_recovery_target</> recovery parameter</primary>
288- </indexterm>
289- </term>
290- <listitem>
291- <para>
292- Alias for recovery_target_action, <literal>true</> is same as
293- recovery_target_action = <literal>pause</> and <literal>false</>
294- is same as recovery_target_action = <literal>promote</>.
295- </para>
296- <para>
297- This setting has no effect if <xref linkend="guc-hot-standby"> is not
298- enabled, or if no recovery target is set.
299- </para>
300- </listitem>
301- </varlistentry>
302-
303- <varlistentry id="action-at-recovery-target"
285+ <varlistentry id="recovery-target-action"
304286 xreflabel="recovery_target_action">
305287 <term><varname>recovery_target_action</varname> (<type>enum</type>)
306288 <indexterm>
@@ -311,35 +293,35 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
311293 <para>
312294 Specifies what action the server should take once the recovery target is
313295 reached. The default is <literal>pause</>, which means recovery will
314- be paused. <literal>promote</> means recovery process will finish and
315- the server will start to accept connections.
296+ be paused. <literal>promote</> means the recovery process will finish
297+ and the server will start to accept connections.
316298 Finally <literal>shutdown</> will stop the server after reaching the
317299 recovery target.
318300 </para>
319301 <para>
320- The intended use of <literal>pause</> setting is to allow queries to be
321- executed against the database to check if this recovery target is the
322- most desirable point for recovery. The paused state can be resumed by
323- using <function>pg_xlog_replay_resume()</> (See
302+ The intended use of the <literal>pause</> setting is to allow queries
303+ to be executed against the database to check if this recovery target
304+ is the most desirable point for recovery.
305+ The paused state can be resumed by
306+ using <function>pg_xlog_replay_resume()</> (see
324307 <xref linkend="functions-recovery-control-table">), which then
325308 causes recovery to end. If this recovery target is not the
326- desired stopping point, then shutdown the server, change the
309+ desired stopping point, then shut down the server, change the
327310 recovery target settings to a later target and restart to
328311 continue recovery.
329312 </para>
330313 <para>
331- The <literal>shutdown</> setting is useful to have instance ready at
332- exact replay point desired.
333- The instance will still be able to replay more WAL records (and in fact
334- will have to replay WAL records since last checkpoint next time it is
335- started).
314+ The <literal>shutdown</> setting is useful to have the instance ready
315+ at the exact replay point desired. The instance will still be able to
316+ replay more WAL records (and in fact will have to replay WAL records
317+ since the last checkpoint next time it is started).
336318 </para>
337319 <para>
338320 Note that because <filename>recovery.conf</> will not be renamed when
339321 <varname>recovery_target_action</> is set to <literal>shutdown</>,
340322 any subsequent start will end with immediate shutdown unless the
341- configuration is changed or the <filename>recovery.conf</> is removed
342- manually.
323+ configuration is changed or the <filename>recovery.conf</> file is
324+ removed manually.
343325 </para>
344326 <para>
345327 This setting has no effect if no recovery target is set.
@@ -349,6 +331,28 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
349331 </listitem>
350332 </varlistentry>
351333
334+ <varlistentry id="pause-at-recovery-target"
335+ xreflabel="pause_at_recovery_target">
336+ <term><varname>pause_at_recovery_target</varname> (<type>boolean</type>)
337+ <indexterm>
338+ <primary><varname>pause_at_recovery_target</> recovery parameter</primary>
339+ </indexterm>
340+ </term>
341+ <listitem>
342+ <para>
343+ This is an obsolete version of <varname>recovery_target_action</>.
344+ Setting it to <literal>true</> is the same as
345+ <varname>recovery_target_action</> = <literal>pause</>,
346+ while <literal>false</> is the same as
347+ <varname>recovery_target_action</> = <literal>promote</>.
348+ </para>
349+ <para>
350+ This setting has no effect if <xref linkend="guc-hot-standby"> is not
351+ enabled, or if no recovery target is set.
352+ </para>
353+ </listitem>
354+ </varlistentry>
355+
352356 </variablelist>
353357 </sect1>
354358
0 commit comments