@@ -163,37 +163,34 @@ from a base backup of the primary instance.
163163 ` ` `
164164 The - W flag prompts you for a password. If you are using this command in an
165165 automated setup, you might need to use a [pgpass file][pgpass- file].
166- 1 . When the backup is complete, create a [ recovery . conf ][postgres - recovery - docs]
167- file in your data directory, and set the appropriate permissions.
168- When PostgreSQL finds a ` recovery.conf ` file in its data directory,
169- it starts in recovery mode and streams the WAL through the replication protocol:
166+ 1 . When the backup is complete, create a
167+ [ standby . signal ][postgres - recovery - docs] file in your data directory. When
168+ PostgreSQL finds a ` standby.signal ` file in its data directory, it starts in
169+ recovery mode and streams the WAL through the replication protocol:
170170 ` ` ` bash
171- touch <DATA_DIRECTORY>/recovery.conf
172- chmod 0600 <DATA_DIRECTORY>/recovery.conf
171+ touch <DATA_DIRECTORY>/standby.signal
173172 ` ` `
174173
175174< / procedure>
176175
177176# # Configure replication and recovery settings
178- When you have successfully created a base backup and a ` recovery.conf ` file, you
177+ When you have successfully created a base backup and a ` standby.signal ` file, you
179178can configure the replication and recovery settings.
180179
181180< procedure>
182181
183182# # Configuring replication and recovery settings
184- 1 . In the ` recovery .conf` file, add details for communicating with the
183+ 1 . In the replica ' s `postgresql .conf` file, add details for communicating with the
185184 primary server. If you are using streaming replication, the
186185 `application_name` in `primary_conninfo` should be the same as the name used
187186 in the primary' s ` synchronous_standby_names` settings:
188187 ` ` ` yaml
189- standby_mode = on
190188 primary_conninfo = 'host=<PRIMARY_IP> port=5432 user=repuser
191189 password=<POSTGRES_USER_PASSWORD> application_name=r1'
192190 primary_slot_name = 'replica_1_slot'
193191 ` ` `
194- 1. In the `postgresql.conf` file, add details to mirror the configuration of
195- the primary database. If you are using asynchronous replication, use these
196- settings:
192+ 1 . Add details to mirror the configuration of the primary database. If you are
193+ using asynchronous replication, use these settings:
197194 ` ` ` yaml
198195 hot_standby = on
199196 wal_level = replica
@@ -385,8 +382,8 @@ check out [Patroni][patroni-github].
385382[pgctl- docs]: https:// www .postgresql .org/ docs/ current/ static/ app- pg- ctl .html
386383[pgpass- file]: https:// www .postgresql .org/ docs/ current/ libpq- pgpass .html
387384[postgres- archive- docs]: https:// www .postgresql .org/ docs/ current/ static/ continuous- archiving .html
388- [postgres-pg-stat-replication-docs]: https://www.postgresql.org/docs/10/static/ monitoring-stats.html#PG-STAT-REPLICATION-VIEW
389- [postgres-recovery-docs]: https://www.postgresql.org/docs/11/recovery -config.html
385+ [postgres- pg- stat- replication- docs]: https:// www .postgresql .org/ docs/ current / monitoring- stats .html # MONITORING- PG-STAT-REPLICATION-VIEW
386+ [postgres- recovery- docs]: https:// www .postgresql .org/ docs/ current / runtime - config- wal .html # RUNTIME-CONFIG-WAL-ARCHIVE-RECOVERY
390387[postgres- rslots- docs]: https:// www .postgresql .org/ docs/ current/ static/ warm- standby .html # STREAMING-REPLICATION-SLOTS
391388[postgres- synchronous- commit - docs]: https:// www .postgresql .org/ docs/ current/ runtime- config- wal .html # GUC-SYNCHRONOUS-COMMIT
392389[replication- modes]: / how- to- guides/ replication- and - ha/ configure- replication# replication-modes
0 commit comments