Setting up PostgreSQL replication for high availability