February 2020
Intermediate to advanced
734 pages
38h 13m
English
In addition to our usual pg-primary PostgreSQL server, we will also be using pg-primary2 for this recipe. Database data will remain in the /db/pgdata directory. A server named pg-shared will play the role of our shared database as well. Follow these steps as the postgres system user and postgres database user where indicated:
pg_basebackup -h pg-primary -D /db/pgdata
standby_mode = 'on' primary_conninfo = 'host=pg-primary user=postgres'
sudo systemctl start postgresql@12-main
Read now
Unlock full access