pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: kondo@sraoss.co.jp
To: pgsql-bugs@postgresql.org
Subject: BUG #13611: test_postmaster_connection failed (Windows, listen_addresses = '0.0.0.0' or '::')
Date: Thu, 10 Sep 2015 04:15:18 +0000
Message-ID: <20150910041518.635.87615@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (26+ messages)  latest in thread

Message-ID: <20150910041518.635.87615@wrigleys.postgresql.org>
Permalink:  ../20150910041518.635.87615@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20150910041518.635.87615@wrigleys.postgresql.org

 · 

reply

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: kondo@sraoss.co.jp
  Subject: Re: BUG #13611: test_postmaster_connection failed (Windows, listen_addresses = '0.0.0.0' or '::')
  In-Reply-To: <20150910041518.635.87615@wrigleys.postgresql.org>
  References: <20150910041518.635.87615@wrigleys.postgresql.org>

* 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