Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZZtHT-0000lO-9i for pgsql-bugs@arkaria.postgresql.org; Thu, 10 Sep 2015 04:16:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZZtHS-0007zy-6v for pgsql-bugs@arkaria.postgresql.org; Thu, 10 Sep 2015 04:16:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZZtHR-0007zs-UF for pgsql-bugs@postgresql.org; Thu, 10 Sep 2015 04:16:13 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZZtHH-0008Vy-RJ for pgsql-bugs@postgresql.org; Thu, 10 Sep 2015 04:16:10 +0000 MIME-Version: 1.0 Subject: BUG #13611: test_postmaster_connection failed (Windows, listen_addresses = '0.0.0.0' or '::') To: pgsql-bugs@postgresql.org From: kondo@sraoss.co.jp Date: Thu, 10 Sep 2015 04:15:18 +0000 Message-ID: <20150910041518.635.87615@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 13611 Logged by: Kondo Yuta Email address: kondo@sraoss.co.jp PostgreSQL version: 9.4.4 Operating system: Windows 7 Description: Hello, According to PostgreSQL document, listen_addresses = '0.0.0.0' or '::' are allowed. http://www.postgresql.org/docs/9.4/static/runtime-config-connection.html#GUC-LISTEN-ADDRESSES But I found "pg_ctl -w ..." timeouts connection test on Windows with listen_addresses = '0.0.0.0' or '::'. I found this reason in src/bin/pg_ctl/pg_ctl.c [test_postmaster_connection(bool)]. When pg_ctl tries to connect to postmaster, it uses "0.0.0.0" as the target ip address. Unfortunately "0.0.0.0" is not a valid address on Windows and it fails. Shouldn't pg_ctl translate "0.0.0.0" to "127.0.0.1" in this case? -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs