From: Peter Eisentraut <peter_e@gmx.net>
To: Noah Misch <noah@leadboat.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Tatsuo Ishii <ishii@postgresql.org>
Cc: robertmhaas@gmail.com
Cc: kondo@sraoss.co.jp
Cc: pgsql-hackers@postgresql.org
Subject: Re: Re: [BUGS] BUG #13611: test_postmaster_connection failed (Windows, listen_addresses = '0.0.0.0' or '::')
Date: Sat, 24 Oct 2015 02:04:39 -0400
Message-ID: <562B1F77.5050500@gmx.net> (raw)
In-Reply-To: <20151024031036.GB421105@tornado.leadboat.com>
References: <CA+TgmobJ2ntJ8qU69LdemHhSKtC+8cMOVc5Wncmd1DdXbjLOGw@mail.gmail.com>
<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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: peter_e@gmx.net, noah@leadboat.com, tgl@sss.pgh.pa.us, ishii@postgresql.org, robertmhaas@gmail.com, kondo@sraoss.co.jp, pgsql-hackers@postgresql.org
Subject: Re: [BUGS] BUG #13611: test_postmaster_connection failed (Windows, listen_addresses = '0.0.0.0' or '::')
In-Reply-To: <562B1F77.5050500@gmx.net>
References: <CA+TgmobJ2ntJ8qU69LdemHhSKtC+8cMOVc5Wncmd1DdXbjLOGw@mail.gmail.com> <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> <562B1F77.5050500@gmx.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox