Added check to postgres for instance stats and hot_standby replication l...

...ag