use to-slave to change psql instance to slave