Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZbLWT-0000Qd-GD for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Sep 2015 04:37:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZbLWT-0005MV-1o for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Sep 2015 04:37:45 +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 1ZbLV6-0000nE-Cr for pgsql-hackers@postgresql.org; Mon, 14 Sep 2015 04:36:20 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZbLV2-0005c9-T9; Mon, 14 Sep 2015 04:36:18 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t8E4aEpW011078; Mon, 14 Sep 2015 00:36:14 -0400 From: Tom Lane To: Tatsuo Ishii cc: kondo@sraoss.co.jp, pgsql-hackers@postgresql.org Subject: Re: Re: [BUGS] BUG #13611: test_postmaster_connection failed (Windows, listen_addresses = '0.0.0.0' or '::') In-reply-to: <20150914.131534.102176843624802952.t-ishii@sraoss.co.jp> References: <20150910041518.635.87615@wrigleys.postgresql.org> <20150914.131534.102176843624802952.t-ishii@sraoss.co.jp> Comments: In-reply-to Tatsuo Ishii message dated "Mon, 14 Sep 2015 13:15:34 +0900" Date: Mon, 14 Sep 2015 00:36:14 -0400 Message-ID: <11077.1442205374@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Tatsuo Ishii writes: >> 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? > I think this is definitely a bug. I privately heard from the reporter > that if postmaster is started by not using pg_ctl, it happily starts > with "listen_addresses = '0.0.0.0'. That means, postmaster itself > works as advertised, but pg_ctl does not. I looked at this before, and could not see anything in either the postmaster or pg_ctl that would invent the address 0.0.0.0 out of thin air. I think this report most likely depends on some misconfiguration of the OP's system. I doubt it should be our business to work around such misconfiguration. In particular, magically substituting 127.0.0.1 for 0.0.0.0 seems utterly without principle. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers