Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zprwg-0005Bv-5C for pgsql-hackers@arkaria.postgresql.org; Sat, 24 Oct 2015 06:04:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zprwf-0003zW-FM for pgsql-hackers@arkaria.postgresql.org; Sat, 24 Oct 2015 06:04:49 +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 1Zprwe-0003zQ-UL for pgsql-hackers@postgresql.org; Sat, 24 Oct 2015 06:04:48 +0000 Received: from mout.gmx.net ([212.227.15.18]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1Zprwb-0006eU-Hy for pgsql-hackers@postgresql.org; Sat, 24 Oct 2015 06:04:48 +0000 Received: from auth1-smtp.messagingengine.com ([66.111.4.227]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0Lb4vZ-1aDxHH2naz-00kfkz for ; Sat, 24 Oct 2015 08:04:42 +0200 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailauth.nyi.internal (Postfix) with ESMTP id D42BB206F4 for ; Sat, 24 Oct 2015 02:04:40 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Sat, 24 Oct 2015 02:04:40 -0400 X-Sasl-enc: hJBtw8fk38Q1g1A7EQAqkTv8JC9yQj1QMp052pEOmmk3 1445666680 Received: from [10.0.0.7] (c-73-13-69-21.hsd1.pa.comcast.net [73.13.69.21]) by mail.messagingengine.com (Postfix) with ESMTPA id 5F7336800E2; Sat, 24 Oct 2015 02:04:40 -0400 (EDT) Subject: Re: Re: [BUGS] BUG #13611: test_postmaster_connection failed (Windows, listen_addresses = '0.0.0.0' or '::') To: Noah Misch , Tom Lane References: <1815.1444694857@sss.pgh.pa.us> <20151013020831.GC164717@tornado.leadboat.com> <20151023.080042.393745468058207046.t-ishii@sraoss.co.jp> <53500.1445555710@sss.pgh.pa.us> <20151023005147.GA403745@tornado.leadboat.com> <55164.1445569167@sss.pgh.pa.us> <20151024031036.GB421105@tornado.leadboat.com> Cc: Tatsuo Ishii , robertmhaas@gmail.com, kondo@sraoss.co.jp, pgsql-hackers@postgresql.org From: Peter Eisentraut Message-ID: <562B1F77.5050500@gmx.net> Date: Sat, 24 Oct 2015 02:04:39 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151024031036.GB421105@tornado.leadboat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:Ew2XBWkieYTz0Cw0BqQ5M2WI6bHPo8WbQtf5eTJnRzzIgEwtgvp HTKw8S3QpMl/BEwuZg09os87/1GR9Ar/5ORq/ZY/SE3sM89k8nOp4VVmvpZaS4Ur8dnmloh tMyrYAFSZUWEFZZS1WzLGo1aiZFR0EHm14yhIiX4TFTUd2Sn/19q/tQ1r2+E8XIACWuZlu2 r74/k8Zppf9QkmJYYdm7Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:3IT06g33odE=:4z3BwiisLyYPxJ/ZYoZZgn l0JXEilng/rJeGmEzNBUxRmxsfM5hzd+yw5Q7i6jIbcsJhYK9r/CInhOs+VrTf5LGd2fU7TRV d/8oG7ocu34LsqJn1kSLPkn2s7rDoEIokfNRmwHAFGZZMiJElhmbAheRsYgFmW7JMEH3okIbg Kme+Uk6+jpc91KF0T7R7Eo/EYsfFF6GdIJsl7bYsrn4jy29UA7NthivOaci1fJ1XRJe1mKqmI U65paNAyk6hXlaUqu/ck90SL0LVNB+8OF3ocPzG0sN+CJD83d7lfbLoXqcoiWHYGBFRAoDrgh j4WgR7KYGbbB3uXuKf17QqKymHcNetwdbDUYEgwnoBi2o4Ap5cvoGyzUUfa7jpdKlRln5eoX+ Lo4sSpi8znA6+CmJFqEzHnoWvhOS6fVPsIZfP+TjWXY2zkSo3QwlhRrDPXjvUiF3tgNdhRymh EDBEF+AUsPwz3Zhf/1siltC1V7DkAEk0xcF66XslFF4C6l7TaJ/RY27ne5SXVQ/sRUPJzxjJZ 51F48ex/oHYyJUaZujLUvWxpS2ZUr4w3/CcVFR2YgCLwot32WI2SyB361omTxYvHuCmDCvqfN aDBzD7SE8E4hhjJw6A+zjCZ0gdOYXuI4uNaDYVkr/U/FtP6KyjhhS85043fXSPEUpB1mZVmc8 9xm/b5X5bCWzQzzn9bXL2xcEsZxLwZMokKzbHYHr96WgPmZbo4F2cx5Ltm4dMiIKN7NwZj0CS H0H/eYltDAdON8PvQ+ZCiKlcc9+8QC6V3guxhA7praqiAwk3Zlf/W6TwFPqY3zDhcHDt+7Vif NlHQqL/ X-Pg-Spam-Score: -2.6 (--) 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 On 10/23/15 11:10 PM, Noah Misch wrote: > On RHEL 5 and some other "active adult" systems, "localhost" does not reach a > listen_addresses='::' server. IPv6 is available, but "localhost" resolves to > 127.0.0.1 only. > > The latest systems resolve "localhost" to both 127.0.0.1 and ::1, in which > case PQping("host='localhost'") will attempt both addresses in an unspecified > order. Given a postmaster with listen_addresses='0.0.0.0', contacting ::1 > first will fail (fine) or reach a different postmaster (not fine). A design I have seen in some other systems is that you specify as a configuration parameter an address by which you want to be contacted by admin tools. This might be overkill here since we only need to be contacted by a local client and the discussion is hoping to handle those cases, but if not it would be a more principled solution. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers