Re: Re: [PATCHES] PostgreSQL virtual hosting support - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Re: [PATCHES] PostgreSQL virtual hosting support
Date
Msg-id 15178.974160073@sss.pgh.pa.us
Whole thread Raw
In response to Re: Re: [PATCHES] PostgreSQL virtual hosting support  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Re: [PATCHES] PostgreSQL virtual hosting support  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> 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


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Syslog Facility Patch
Next
From: Tom Lane
Date:
Subject: Re: Re: [PATCHES] PostgreSQL virtual hosting support