Testing PostgreSQL replication