pgsql: Don't connect() to a wildcard address in test_postmaster_connect - Mailing list pgsql-committers

From Noah Misch
Subject pgsql: Don't connect() to a wildcard address in test_postmaster_connect
Date
Msg-id E1ZvYZR-0002d9-4z@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/87deb55a4723e3ee00e4324fca684c26cfa17cc6

Modified Files
--------------
src/bin/pg_ctl/pg_ctl.c |   15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Noah Misch
Date:
Subject: pgsql: Don't connect() to a wildcard address in test_postmaster_connect
Next
From: Noah Misch
Date:
Subject: pgsql: Don't connect() to a wildcard address in test_postmaster_connect