Add 'recovery_target_timeline = latest' to recovery.conf

Also revert to generating our own recovery.conf rather than using
pg_basebackup's minimal file.
This commit is contained in:
Ian Barwick
2015-01-08 10:37:27 +09:00
parent 5b5b4cd4cd
commit 5798241205
2 changed files with 39 additions and 21 deletions

View File

@@ -291,6 +291,7 @@ main(int argc, char **argv)
*/
do
{
log_debug("main loop...\n");
/*
* Set my server mode, establish a connection to primary and start
* monitor
@@ -351,6 +352,7 @@ main(int argc, char **argv)
*/
do
{
log_debug("primary check loop...\n");
if (check_connection(primary_conn, "master"))
{
/*
@@ -439,6 +441,8 @@ main(int argc, char **argv)
do
{
log_debug("standby check loop...\n");
if (my_local_mode == WITNESS_MODE)
witness_monitor();
else if (my_local_mode == STANDBY_MODE)