Postgresql replication checking