notify: fixing postgres failover