xreflabel="recovery_target_action">
recovery_target_action (enum)
Specifies what action the server should take once the recovery target is
reached. The default is pause>, which means recovery will
- be paused. promote> means recovery process will finish and
- the server will start to accept connections.
+ be paused. promote> means the recovery process will finish
+ and the server will start to accept connections.
Finally shutdown> will stop the server after reaching the
recovery target.
- The intended use of pause> setting is to allow queries to be
- executed against the database to check if this recovery target is the
- most desirable point for recovery. The paused state can be resumed by
- using pg_xlog_replay_resume()> (See
+ The intended use of the pause> setting is to allow queries
+ to be executed against the database to check if this recovery target
+ is the most desirable point for recovery.
+ The paused state can be resumed by
+ using pg_xlog_replay_resume()> (see
), which then
causes recovery to end. If this recovery target is not the
- desired stopping point, then shutdown the server, change the
+ desired stopping point, then shut down the server, change the
recovery target settings to a later target and restart to
continue recovery.
- The shutdown> setting is useful to have instance ready at
- exact replay point desired.
- The instance will still be able to replay more WAL records (and in fact
- will have to replay WAL records since last checkpoint next time it is
- started).
+ The shutdown> setting is useful to have the instance ready
+ at the exact replay point desired. The instance will still be able to
+ replay more WAL records (and in fact will have to replay WAL records
+ since the last checkpoint next time it is started).
Note that because recovery.conf> will not be renamed when
recovery_target_action> is set to shutdown>,
any subsequent start will end with immediate shutdown unless the
- configuration is changed or the recovery.conf> is removed
- manually.
+ configuration is changed or the recovery.conf> file is
+ removed manually.
This setting has no effect if no recovery target is set.
+
+ xreflabel="pause_at_recovery_target">
+ pause_at_recovery_target (boolean)
+
+
pause_at_recovery_target> recovery parameter
+
+
+
+ This is an obsolete version of recovery_target_action>.
+ Setting it to true> is the same as
+ recovery_target_action> = pause>,
+ while false> is the same as
+ recovery_target_action> = promote>.
+
+ This setting has no effect if is not
+ enabled, or if no recovery target is set.
+
+
+
+