On 11/25/2016 07:19 AM, Tsunakawa, Takayuki wrote:
> Specifying multiple hosts is a new feature to be introduced in v10, so that's here:
>
> https://www.postgresql.org/docs/devel/static/libpq-connect.html
Thanks, I had missed that patch. If we add support for multiple hosts I
think we should also allow for specifying the corresponding multiple
hostaddrs.
Another thought about this code: should we not check if it is a unix
socket first before splitting the host? While I doubt that it is common
to have a unix socket in a directory with comma in the path it is a bit
annoying that we no longer support this.
Andreas