- Create user replication in the master
sudo -u postgres psql -c "CREATE USER rep REPLICATION \
LOGIN ENCRYPTED PASSWORD 'thepassword';"- Modify
postgresql.confin the master
listen_address = # make sure we're listening as appropriate
wal_level = hot_standby