Configuring replication and recovery settings
In the replica's
postgresql.conffile, add details for communicating with the primary server. If you are using streaming replication, theapplication_nameinprimary_conninfoshould be the same as the name used in the primary'ssynchronous_standby_namessettings:Add details to mirror the configuration of the primary database. If you are using asynchronous replication, use these settings:
The hot_standby parameter must be set to on to allow read-only queries on the replica. In Postgres 10 and later, this setting is on by default.
- Restart Postgres to pick up the changes.