Re: Re: [PATCHES] PostgreSQL virtual hosting support

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Re: [PATCHES] PostgreSQL virtual hosting support
Дата
Msg-id 15178.974160073@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Re: [PATCHES] PostgreSQL virtual hosting support  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: Re: [PATCHES] PostgreSQL virtual hosting support  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Syslog Facility Patch
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Re: [PATCHES] PostgreSQL virtual hosting support