postgresql/src/bin
Tom Lane cad4fe6455 Use AF_UNSPEC not PF_UNSPEC in getaddrinfo calls.
According to the Single Unix Spec and assorted man pages, you're supposed
to use the constants named AF_xxx when setting ai_family for a getaddrinfo
call.  In a few places we were using PF_xxx instead.  Use of PF_xxx
appears to be an ancient BSD convention that was not adopted by later
standardization.  On BSD and most later Unixen, it doesn't matter much
because those constants have equivalent values anyway; but nonetheless
this code is not per spec.

In the same vein, replace PF_INET by AF_INET in one socket() call, which
wasn't even consistent with the other socket() call in the same function
let alone the remainder of our code.

Per investigation of a Cygwin trouble report from Marco Atzeri.  It's
probably a long shot that this will fix his issue, but it's wrong in
any case.
2014-04-16 13:21:20 -04:00
..
initdb Use AF_UNSPEC not PF_UNSPEC in getaddrinfo calls. 2014-04-16 13:21:20 -04:00
pg_basebackup Add TAP tests for client programs 2014-04-14 21:33:46 -04:00
pg_config Add TAP tests for client programs 2014-04-14 21:33:46 -04:00
pg_controldata Add TAP tests for client programs 2014-04-14 21:33:46 -04:00
pg_ctl Add TAP tests for client programs 2014-04-14 21:33:46 -04:00
pg_dump Use AF_UNSPEC not PF_UNSPEC in getaddrinfo calls. 2014-04-16 13:21:20 -04:00
pg_resetxlog Remove MinGW readdir/errno bug workaround fixed on 2003-10-10 2014-03-21 13:47:37 -04:00
pgevent Remove inappropriate EXPORTS line. 2014-02-19 21:08:50 -05:00
psql psql: conditionally display oids and replication identity 2014-04-15 13:28:54 -04:00
scripts vacuumdb: Add option --analyze-in-stages 2014-04-15 00:44:25 -04:00
Makefile Update copyright for 2014 2014-01-07 16:05:30 -05:00