try to reconnect pg after restart