Bruce Momjian <[EMAIL PROTECTED]> writes:
> +     if (conn->pghostaddr && conn->pghostaddr[0] == '/')
> +     {
> +             if (conn->pgunixsocket)
> +                     free(conn->pgunixsocket);
> +             conn->pgunixsocket = conn->pghostaddr;
> +             conn->pghostaddr = NULL;
> +     }

I would be inclined to think you should NOT look for a path in
pghostaddr, since my understanding is that that's supposed to be a
numeric IP address and nothing but.  Otherwise this looks pretty
reasonable.

                        regards, tom lane

Reply via email to