Add restartpoint_command option to recovery.conf. Fix bug in %r handling

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: c21ac0b58e8c3bb050d87e213a6f4524b01b2a6d
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2010-03-18T09:17:18Z
Releases: 9.0.0
Add restartpoint_command option to recovery.conf. Fix bug in %r handling
in recovery_end_command, it always came out as 0 because InRedo was
cleared before recovery_end_command was executed. Also, always take
ControlFileLock when reading checkpoint location for %r.

The recovery_end_command bug and the missing locking was present in 8.4
as well, that part of this patch will be backported separately.

Files

PathChange+/−
doc/src/sgml/recovery-config.sgml modified +26 −7
src/backend/access/transam/xlog.c modified +65 −38