Re: FreeBSD Thread-safe functions ...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: "Marc G(dot) Fournier" <scrappy(at)hub(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: FreeBSD Thread-safe functions ...
Date: 2003-09-16 01:49:49
Message-ID: 12662.1063676989@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruno Wolff III 2003-09-16 04:03:38 Error compiling timestamp.c in 7.4
Previous Message Gavin Sherry 2003-09-16 00:26:32 Re: LISTEN and "tuple concurrently updated"