Adding PG 9.1-compatible replication lag check