pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: bugs@ttyhoney.com
To: pgsql-bugs@postgresql.org
Subject: BUG #7677: listen_address 'localhost' listens not to IPv6 ::1
Date: Mon, 19 Nov 2012 13:26:13 +0000
Message-ID: <E1TaRMb-00045H-Hl@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      7677
Logged by:          Peter Weber
Email address:      bugs@ttyhoney.com
PostgreSQL version: 9.1.6
Operating system:   GNU/Linux (Fedora 17)
Description:        

Hello!
I just started to use PostgreSQL here, and followed this guide[see 1]. As I
am currently just playing around I wondered, if I can use IPv6. My network
is not IPv6 capabable, but my machine is. So I used "[::1]" instead if
"localhost" or "127.0.0.1". I doesn't work with "[::1]".

Told me, that PostgreSQL is only listening to IPv4:
$ ss -ln
127.0.0.1:5432                               *:*

So I modified the postgresql.conf:
FROM
#listen_addresses = 'localhost' 
TO
listen_addresses = '::'

And PostgresSQL starts to listen to IPv6:
$ ss -ln
:::5432                              :::*     

What I expect:
localhost means 127.0.0.1 if IPv4 is available OR ::1 if IPv6 is available.
This is a logical OR, that means booth at the same time are possible.

Thank you
Peter

[1]http://jdbc.postgresql.org/documentation/91/connect.html





view thread (2+ messages)  latest in thread

Message-ID: <E1TaRMb-00045H-Hl@wrigleys.postgresql.org>
Permalink:  ../E1TaRMb-00045H-Hl@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1TaRMb-00045H-Hl@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: bugs@ttyhoney.com
  Subject: Re: BUG #7677: listen_address 'localhost' listens not to IPv6 ::1
  In-Reply-To: <E1TaRMb-00045H-Hl@wrigleys.postgresql.org>
  References: <E1TaRMb-00045H-Hl@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