PostgreSQL Streaming Replication

Streaming replication means the changes are synchronously applied from the master to the slave(s). First, create the replication user on the master: $ sudo -u postgres psql -c “CREATE USER replicator REPLICATION LOGIN ENCRYPTED PASSWORD ”;” The user created is…