@@ -199,8 +199,33 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
199199 <sect1 id="recovery-target-settings">
200200
201201 <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>
202209 <variablelist>
203210
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+
204229 <varlistentry id="recovery-target-name" xreflabel="recovery_target_name">
205230 <term><varname>recovery_target_name</varname>
206231 (<type>string</type>)
@@ -212,10 +237,6 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
212237 <para>
213238 This parameter specifies the named restore point, created with
214239 <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.
219240 </para>
220241 </listitem>
221242 </varlistentry>
@@ -231,10 +252,6 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
231252 <para>
232253 This parameter specifies the time stamp up to which recovery
233254 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.
238255 The precise stopping point is also influenced by
239256 <xref linkend="recovery-target-inclusive">.
240257 </para>
@@ -254,15 +271,18 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
254271 start, transactions can complete in a different numeric order.
255272 The transactions that will be recovered are those that committed
256273 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.
261274 The precise stopping point is also influenced by
262275 <xref linkend="recovery-target-inclusive">.
263276 </para>
264277 </listitem>
265278 </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>
266286
267287 <varlistentry id="recovery-target-inclusive"
268288 xreflabel="recovery_target_inclusive">
0 commit comments