# If "recovery.conf" is present in the PostgreSQL data directory, it is # read on postmaster startup. After successful recovery, it is renamed # to "recovery.done" to ensure that we do not accidentally re-enter # archive recovery or standby mode. # standby_mode = 'on' primary_conninfo = 'host=10.200.1.62 port=5432 user=replication password=replication123' trigger_file = '/tmp/trigger_file' #Note about restorecommand: It can be an scp to the "other" machines archive dir, useful if the slave falls behind (beyond the px_log) #and needs access to older logs. (Alternativly you can write your pglogs to a shared space (eg: nfs) ) restore_command = 'cp /var/lib/pgsql/9.6/archive/%f "%p"' archive_cleanup_command = '/usr/pgsql-9.6/bin/pg_archivecleanup /var/lib/pgsql/9.6/archive/ %r'