Wait until postgres is configured before starting it