OSDN Git Service

Add recovery_end_command option to recovery.conf. recovery_end_command
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 14 May 2009 20:31:09 +0000 (20:31 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 14 May 2009 20:31:09 +0000 (20:31 +0000)
commit9e403c2587868b026e14006c34c8fce0ac5a823d
tree851a38ba4fdb278f51fc8a8a97fd050426cf2cb9
parenta7107136445914dcfaee7fed4cf65314f73cc6b7
Add recovery_end_command option to recovery.conf. recovery_end_command
is run at the end of archive recovery, providing a chance to do external
cleanup. Modify pg_standby so that it no longer removes the trigger file,
that is to be done using the recovery_end_command now.

Provide a "smart" failover mode in pg_standby, where we don't fail over
immediately, but only after recovering all unapplied WAL from the archive.
That gives you zero data loss assuming all WAL was archived before
failover, which is what most users of pg_standby actually want.

recovery_end_command by Simon Riggs, pg_standby changes by Fujii Masao and
myself.
contrib/pg_standby/pg_standby.c
doc/src/sgml/backup.sgml
doc/src/sgml/pgstandby.sgml
src/backend/access/transam/xlog.c