Merge pull request #4 from meswapnilwagh/patch-1
[pgpool-online-recovery] / recovery.conf
1 # If "recovery.conf" is present in the PostgreSQL data directory, it is
2 # read on postmaster startup.  After successful recovery, it is renamed
3 # to "recovery.done" to ensure that we do not accidentally re-enter
4 # archive recovery or standby mode.
5 #
6 standby_mode = 'on'
7 primary_conninfo = 'host=master-or-slave.foo.bar port=5432 user=postgres password=nopass'
8 trigger_file = '/tmp/trigger_file'
9 #Note about restorecommand: It can be an scp to the "other" machines archive dir, useful if the slave falls behind (beyond the px_log)
10 #and needs access to older logs. (Alternativly you can write your pglogs to a shared space (eg: nfs) )
11 restore_command = 'cp /var/lib/postgresql/9.1/archive/%f "%p"'
12 archive_cleanup_command = '/usr/lib/postgresql/9.1/bin/pg_archivecleanup /var/lib/postgresql/9.1/archive/ %r'