February 2020
Intermediate to advanced
734 pages
38h 13m
English
For this scenario, the server at 10.0.30.1 is the primary PostgreSQL server, and 10.0.30.2 will be the new copy. On all PostgreSQL servers, our data directory should be located at /db/pgdata.
Follow these steps to build a PostgreSQL hot standby:
host replication rep_user 10.0.30.2/32 trust
wal_level = logical max_wal_senders = 10
sudo systemctl restart postgresql@12-main ...
Read now
Unlock full access