Re: FreeBSD Thread-safe functions ... - Mailing list pgsql-hackers

From Tom Lane
Subject Re: FreeBSD Thread-safe functions ...
Date
Msg-id 12662.1063676989@sss.pgh.pa.us
Whole thread Raw
In response to Re: FreeBSD Thread-safe functions ...  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Tom Lane wrote:
>> Hm.  A quick grep shows that our *only* use of gethostbyname is in
>> src/port/getaddrinfo.c.  Seems like we should omit this "porting
>> requirement" on platforms that have getaddrinfo.

> See the post I just made --- fe-secure.c calls pqGethostbyname(), and
> that should be converted to getaddrinfo

No, it should be diked out.  The call you are referring to is in code
that is #ifdef NOT_USED.  The whole routine is pretty broken anyway (not
IPv6-aware, for starters) and I think we should just rip it out rather
than try to bring it up to speed.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Gavin Sherry
Date:
Subject: Re: LISTEN and "tuple concurrently updated"
Next
From: Bruno Wolff III
Date:
Subject: Error compiling timestamp.c in 7.4