2012-05-15 15:25:01 -07:00
|
|
|
# Note that recovery.conf must be in $PGDATA directory.
|
|
|
|
|
|
|
|
# Specifies whether to start the server as a standby. In streaming replication,
|
|
|
|
# this parameter must to be set to on.
|
|
|
|
standby_mode = 'on'
|
|
|
|
|
|
|
|
# Specifies a connection string which is used for the standby server to connect
|
|
|
|
# with the primary.
|
2017-03-15 19:26:54 -07:00
|
|
|
primary_conninfo = 'host=db_pgsql port=5432 user=postgres'
|
2012-05-15 15:25:01 -07:00
|
|
|
|
|
|
|
# Specifies a trigger file whose presence should cause streaming replication to
|
|
|
|
# end (i.e., failover).
|
2019-10-03 09:05:28 -04:00
|
|
|
trigger_file = '/var/lib/postgresql/11/main/standby.trigger'
|
2012-05-15 15:25:01 -07:00
|
|
|
|
|
|
|
# Specifies a command to load archive segments from the WAL archive. If
|
|
|
|
# wal_keep_segments is a high enough number to retain the WAL segments
|
|
|
|
# required for the standby server, this may not be necessary. But
|
|
|
|
# a large workload can cause segments to be recycled before the standby
|
|
|
|
# is fully synchronized, requiring you to start again from a new base backup.
|
2020-12-02 20:51:33 -05:00
|
|
|
restore_command = 'rsync -a db_pgsql:/var/lib/postgresql/13/archive/%f "%p"'
|