Re: AIX and getaddrinfo (was Re: Upgrade problem) - Mailing list pgsql-general

From Albe Laurenz
Subject Re: AIX and getaddrinfo (was Re: Upgrade problem)
Date
Msg-id 52EF20B2E3209443BC37736D00C3C1380BA60720@EXADV1.host.magwien.gv.at
Whole thread Raw
In response to AIX and getaddrinfo (was Re: Upgrade problem)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Tom Lane wrote:
> Can anyone else confirm the behavior of getaddrinfo wanting port 5432
> to be listed in /etc/services?  If this is real, we ought to have
> something about it in FAQ_AIX.

I can compile (64 bit) and run the following code without problem:

#include <sys/socket.h>
#include <netdb.h>
#include <stdio.h>

int main(int argc, char **argv) {
        struct addrinfo *res;
        int rc;

        rc = getaddrinfo("localhost", "5432", NULL, &res);
        if (0 != rc) {
                if (EAI_SYSTEM == rc)
                        perror("System error");
                else
                        fprintf(stderr, "Error: %s\n",
gai_strerror(rc));
                return rc;
        }

        return 0;
}

5432 is not in /etc/services.

This is AIX 5.3 ML 3.

Yours,
Laurenz Albe

pgsql-general by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: Editing contrib modules which are loaded by default?
Next
From: novnov
Date:
Subject: Re: Editing contrib modules which are loaded by default?