Re: pgsql: Remove IS_AF_UNIX macro

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Remove IS_AF_UNIX macro
Дата
Msg-id 3323700.1645028015@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql: Remove IS_AF_UNIX macro  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Список pgsql-committers
Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes:
> On 15.02.22 16:41, Tom Lane wrote:
>> I hadn't looked closely at this patch, but are you referring to
>> this bit in ip.h?

> In src/backend/utils/adt/pgstatfuncs.c there is a use of AF_UNIX that 
> has been there unprotected by any #ifdef since about 2008.

Oh, I see it :-(.  Poor coding, but it evidently no longer matters.

> Maybe/probably.  But there is a difference between platforms having the 
> AF_UNIX symbol (which is required by POSIX unconditionally) and 
> platforms actually having Unix sockets or not (which might require 
> different default configurations or run-time behavior), so the two 
> questions are not that closely connected.

Fair point.

            regards, tom lane



В списке pgsql-committers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: pgsql: Remove IS_AF_UNIX macro
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Fix bogus log message when starting from a cleanly shut down sta