postgresql/src/backend
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
..
access Use correctly-sized buffer when zero-filling a WAL file. 2014-04-16 10:26:36 +03:00
bootstrap Avoid repeated name lookups during table and index DDL. 2014-02-17 09:33:31 -05:00
catalog Create infrastructure for moving-aggregate optimization. 2014-04-12 12:03:30 -04:00
commands Improve some O(N^2) behavior in window function evaluation. 2014-04-13 13:59:17 -04:00
executor Improve some O(N^2) behavior in window function evaluation. 2014-04-13 13:59:17 -04:00
foreign Update copyright for 2014 2014-01-07 16:05:30 -05:00
lib Fix typos in comments. 2014-03-17 20:47:28 +09:00
libpq Use AF_UNSPEC not PF_UNSPEC in getaddrinfo calls. 2014-04-16 13:21:20 -04:00
main Allow "-C variable" and "--describe-config" even to root users. 2014-04-04 22:03:35 -04:00
nodes Make security barrier views automatically updatable 2014-04-12 21:04:58 -04:00
optimizer Make security barrier views automatically updatable 2014-04-12 21:04:58 -04:00
parser Make a dedicated AlterTblSpcStmt production 2014-04-13 01:02:44 -04:00
po Translation updates 2013-12-02 00:17:07 -05:00
port check socket creation errors against PGINVALID_SOCKET 2014-04-16 10:45:48 -04:00
postmaster Use AF_UNSPEC not PF_UNSPEC in getaddrinfo calls. 2014-04-16 13:21:20 -04:00
regex Fix memory leak during regular expression execution. 2014-03-19 11:09:24 -04:00
replication Fix a few more misc typos in comments. 2014-04-10 00:53:55 +03:00
rewrite Make security barrier views automatically updatable 2014-04-12 21:04:58 -04:00
snowball Prefer pg_any_to_server/pg_server_to_any over pg_do_encoding_conversion. 2014-02-23 16:59:05 -05:00
storage Try to fix spurious DSM failures on Windows. 2014-04-16 12:04:44 -04:00
tcop Reduce lock levels of some ALTER TABLE cmds 2014-04-06 11:13:43 -04:00
tsearch Avoid memcpy() with same source and destination address. 2014-03-07 13:14:33 +02:00
utils Add to_regprocedure() and to_regoperator(). 2014-04-16 12:21:43 -04:00
.gitignore Add gitignore for mingw/cygwin build outputs 2011-06-09 18:11:47 +02:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
Makefile Get rid of use of dlltool in Mingw builds. 2014-02-11 12:56:20 -05:00
nls.mk Add libpgcommon to backend gettext source files 2013-10-19 13:49:05 -04:00