]> granicus.if.org Git - postgresql/commit
Don't connect() to a wildcard address in test_postmaster_connection().
authorNoah Misch <noah@leadboat.com>
Sun, 8 Nov 2015 22:28:53 +0000 (17:28 -0500)
committerNoah Misch <noah@leadboat.com>
Sun, 8 Nov 2015 22:28:53 +0000 (17:28 -0500)
commitfed19f312c72778ce7dcbb0670871b22bd06ff85
tree6b061d44c03b12345c271c9bc8eaf504e45e230c
parentfba60e573e092991dde4f757b88384ab1ec6a0ce
Don't connect() to a wildcard address in test_postmaster_connection().

At least OpenBSD, NetBSD, and Windows don't support it.  This repairs
pg_ctl for listen_addresses='0.0.0.0' and listen_addresses='::'.  Since
pg_ctl prefers to test a Unix-domain socket, Windows users are most
likely to need this change.  Back-patch to 9.1 (all supported versions).
This could change pg_ctl interaction with loopback-interface firewall
rules.  Therefore, in 9.4 and earlier (released branches), activate the
change only on known-affected platforms.

Reported (bug #13611) and designed by Kondo Yuta.
src/bin/pg_ctl/pg_ctl.c