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