From: | "Albe Laurenz" <all(at)adv(dot)magwien(dot)gv(dot)at> |
---|---|
To: | "Tom Lane *EXTERN*" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Bill Kurland" <bill(at)shakespeare-nyc(dot)com> |
Cc: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: AIX and getaddrinfo (was Re: Upgrade problem) |
Date: | 2006-11-28 17:50:34 |
Message-ID: | 52EF20B2E3209443BC37736D00C3C1380BA60720@EXADV1.host.magwien.gv.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Mark Jensen | 2006-11-28 17:55:44 | Including unique users in huge data warehouse in Postgresql... |
Previous Message | Joshua D. Drake | 2006-11-28 17:50:15 | Re: Editing contrib modules which are loaded by default? |