From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, "David J(dot) MacKenzie" <djm(at)web(dot)us(dot)uu(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Re: [PATCHES] PostgreSQL virtual hosting support |
Date: | 2000-11-14 00:01:13 |
Message-ID: | 15178.974160073@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2000-11-14 00:11:42 | Re: Re: [PATCHES] PostgreSQL virtual hosting support |
Previous Message | Bruce Momjian | 2000-11-13 23:51:23 | Re: Syslog Facility Patch |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2000-11-14 00:11:42 | Re: Re: [PATCHES] PostgreSQL virtual hosting support |
Previous Message | Bruce Momjian | 2000-11-13 23:40:07 | Re: Re: [PATCHES] PostgreSQL virtual hosting support |