Re: PostgreSQL for VAX on NetBSD/OpenBSD

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PostgreSQL for VAX on NetBSD/OpenBSD
Дата
Msg-id 13463.1404058802@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: PostgreSQL for VAX on NetBSD/OpenBSD  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: PostgreSQL for VAX on NetBSD/OpenBSD
Re: PostgreSQL for VAX on NetBSD/OpenBSD
Список pgsql-hackers
I wrote:
> BTW, it sure looks like the part of ACX_PTHREAD beginning with
>      # Various other checks:
>      if test "x$acx_pthread_ok" = xyes; then
> (lines 163..210 in HEAD's acx_pthread.m4) is dead code.

On closer inspection, this has been broken since commit
e48322a6d6cfce1ec52ab303441df329ddbc04d1, which is just barely short of
its tenth birthday.  The reason we've not noticed is that Postgres makes
no use of PTHREAD_CREATE_JOINABLE, nor of PTHREAD_CC, nor of HAVE_PTHREAD,
nor of the success/failure options for ACX_PTHREAD.

I'm tempted to just rip out all the useless code rather than fix the
logic bug as such.  OTOH, that might complicate updating to more recent
versions of the original Autoconf macro.  On the third hand, we've not
bothered to do that in ten years either.

Thoughts?
        regards, tom lane



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

Предыдущее
От: Kevin Grittner
Дата:
Сообщение: Re: Patch to send transaction commit/rollback stats to the stats collector unconditionally.
Следующее
От: Andres Freund
Дата:
Сообщение: Re: PostgreSQL for VAX on NetBSD/OpenBSD