Re: AIX 4.3 getaddrinfo busted - Mailing list pgsql-hackers

From Tom Lane
Subject Re: AIX 4.3 getaddrinfo busted
Date
Msg-id 15786.1232735601@sss.pgh.pa.us
Whole thread Raw
In response to Re: AIX 4.3 getaddrinfo busted  (Andrew Chernow <ac@esilo.com>)
Responses Re: AIX 4.3 getaddrinfo busted  (Andrew Chernow <ac@esilo.com>)
List pgsql-hackers
Andrew Chernow <ac@esilo.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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [COMMITTERS] pgsql: Automatic view update rules Bernd Helmle
Next
From: Simon Riggs
Date:
Subject: Re: Hot standby, conflict resolution