Re: Re: [PATCHES] PostgreSQL virtual hosting support

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(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 01:01:35
Message-ID: 200011140101.UAA20232@candle.pha.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.

Fixed. Thanks.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2000-11-14 01:02:17 Re: Re: [PATCHES] PostgreSQL virtual hosting support
Previous Message Tom Lane 2000-11-14 00:11:42 Re: Re: [PATCHES] PostgreSQL virtual hosting support

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2000-11-14 01:02:17 Re: Re: [PATCHES] PostgreSQL virtual hosting support
Previous Message Tom Lane 2000-11-14 00:11:42 Re: Re: [PATCHES] PostgreSQL virtual hosting support