> 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. Fixed. Thanks. -- Bruce Momjian | http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026
- [HACKERS] Re: [PATCHES] PostgreSQL virtual hosting supp... Bruce Momjian
- Re: [HACKERS] Re: [PATCHES] PostgreSQL virtual hos... Lamar Owen
- Re: [HACKERS] Re: [PATCHES] PostgreSQL virtual hos... The Hermit Hacker
- Re: [HACKERS] Re: [PATCHES] PostgreSQL virtual hos... Alfred Perlstein
- Re: [HACKERS] Re: [PATCHES] PostgreSQL virtual hos... Peter Eisentraut
- Re: [HACKERS] Re: [PATCHES] PostgreSQL virtual... Bruce Momjian
- [HACKERS] Re: [PATCHES] PostgreSQL virtual hosting... David J. MacKenzie
- Re: [HACKERS] Re: [PATCHES] PostgreSQL virtual hos... Bruce Momjian
- Re: [HACKERS] Re: [PATCHES] PostgreSQL virtual... Bruce Momjian
- Re: [HACKERS] Re: [PATCHES] PostgreSQL vir... Tom Lane
- Re: [HACKERS] Re: [PATCHES] PostgreSQL... Bruce Momjian
- Re: [HACKERS] Re: [PATCHES] PostgreSQL virtual hos... Tom Lane
- Re: [HACKERS] Re: [PATCHES] PostgreSQL virtual... Bruce Momjian
- Re: [HACKERS] Re: [PATCHES] PostgreSQL vir... Tom Lane
- Re: [HACKERS] Re: [PATCHES] PostgreSQL... Bruce Momjian
- Re: [HACKERS] Re: [PATCHES] Postg... Tom Lane
- Re: [HACKERS] Re: [PATCHES] P... Bruce Momjian
- Re: [HACKERS] Re: [PATCHE... Tom Lane
- Re: [HACKERS] Re: [PATCHES] PostgreSQL virtual hos... David J. MacKenzie
- Re: [HACKERS] Re: [PATCHES] PostgreSQL virtual hos... David J. MacKenzie