Re: AIX 4.3 getaddrinfo busted

From: Andrew Chernow <ac(at)esilo(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: AIX 4.3 getaddrinfo busted
Date: 2009-01-23 19:17:45
Message-ID: 497A17D9.8090504@esilo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Andrew Chernow <ac(at)esilo(dot)com> writes:
>> Tom Lane wrote:
>>> BTW, what about the comments in ip.c to the effect that some versions of
>>> AIX fail when getaddrinfo's second argument *is* null?
>
>> For starters, it indicates that sin_port is not zero'd properly. That
>> wouldn't matter here since the plan is to manually set the port in this
>> case, since providing it to getaddrinfo is broken.
>
> Hmm ... so actually we could get *rid* of that special case if we added
> this one. Okay, I withdraw the complaint. We should simply not rely on
> getaddrinfo to do anything right at all w.r.t. the port if we are
> running on AIX. Pass NULL for servname and set the port ourselves in
> all cases.
>
> regards, tom lane
>

Done.

--
Andrew Chernow
eSilo, LLC
every bit counts
http://www.esilo.com/

Attachment Content-Type Size
aixaddrinfo.patch text/plain 2.6 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Chernow 2009-01-23 19:28:16 Re: AIX 4.3 getaddrinfo busted
Previous Message Heikki Linnakangas 2009-01-23 19:17:11 Re: Hot Standby (v9d)