use psql in protection environment