@@ -199,8 +199,33 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
199
199
<sect1 id="recovery-target-settings">
200
200
201
201
<title>Recovery Target Settings</title>
202
+ <para>
203
+ By default, recovery will recover to the end of the WAL log. The
204
+ following parameters can be used to specify an earlier stopping point.
205
+ At most one of <varname>recovery_target</>,
206
+ <varname>recovery_target_name</>, <varname>recovery_target_time</>, or
207
+ <varname>recovery_target_xid</> can be specified.
208
+ </para>
202
209
<variablelist>
203
210
211
+ <varlistentry id="recovery-target" xreflabel="recovery_target_name">
212
+ <term><varname>recovery_target</varname><literal> = 'immediate'</literal></term>
213
+ <indexterm>
214
+ <primary><varname>recovery_target</> recovery parameter</primary>
215
+ </indexterm>
216
+ <listitem>
217
+ <para>
218
+ This parameter specifies that recovery should end as soon as a
219
+ consistency is reached, ie. as early as possible. When restoring from an
220
+ online backup, this means the point where taking the backup ended.
221
+ </para>
222
+ <para>
223
+ Technically, this is a string parameter, but <literal>'immediate'</>
224
+ is currently the only allowed value.
225
+ </para>
226
+ </listitem>
227
+ </varlistentry>
228
+
204
229
<varlistentry id="recovery-target-name" xreflabel="recovery_target_name">
205
230
<term><varname>recovery_target_name</varname>
206
231
(<type>string</type>)
@@ -212,10 +237,6 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
212
237
<para>
213
238
This parameter specifies the named restore point, created with
214
239
<function>pg_create_restore_point()</> to which recovery will proceed.
215
- At most one of <varname>recovery_target_name</>,
216
- <xref linkend="recovery-target-time"> or
217
- <xref linkend="recovery-target-xid"> can be specified. The default is to
218
- recover to the end of the WAL log.
219
240
</para>
220
241
</listitem>
221
242
</varlistentry>
@@ -231,10 +252,6 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
231
252
<para>
232
253
This parameter specifies the time stamp up to which recovery
233
254
will proceed.
234
- At most one of <varname>recovery_target_time</>,
235
- <xref linkend="recovery-target-name"> or
236
- <xref linkend="recovery-target-xid"> can be specified.
237
- The default is to recover to the end of the WAL log.
238
255
The precise stopping point is also influenced by
239
256
<xref linkend="recovery-target-inclusive">.
240
257
</para>
@@ -254,15 +271,18 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
254
271
start, transactions can complete in a different numeric order.
255
272
The transactions that will be recovered are those that committed
256
273
before (and optionally including) the specified one.
257
- At most one of <varname>recovery_target_xid</>,
258
- <xref linkend="recovery-target-name"> or
259
- <xref linkend="recovery-target-time"> can be specified.
260
- The default is to recover to the end of the WAL log.
261
274
The precise stopping point is also influenced by
262
275
<xref linkend="recovery-target-inclusive">.
263
276
</para>
264
277
</listitem>
265
278
</varlistentry>
279
+ </variablelist>
280
+ <para>
281
+ The following options further specify the recovery target, and affect
282
+ what happens when the target is reached:
283
+ </para>
284
+
285
+ <variablelist>
266
286
267
287
<varlistentry id="recovery-target-inclusive"
268
288
xreflabel="recovery_target_inclusive">
0 commit comments