Add recovery_end_command option to recovery.conf. recovery_end_command
commitaa817b9c884d7fe03e7a3e817903857e31fd633d
authorheikki <heikki>
Thu, 14 May 2009 20:31:09 +0000 (14 20:31 +0000)
committerheikki <heikki>
Thu, 14 May 2009 20:31:09 +0000 (14 20:31 +0000)
tree2446e48e223f6be8ef807a8d66f9b343683ab955
parentfb6d06584fe063ff68a19c8534368dc21c69541b
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