postgres_failover: added actions for master and slave