Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TaRMg-0000rq-73 for pgsql-bugs@postgresql.org; Mon, 19 Nov 2012 13:26:18 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TaRMd-0000nx-HV for pgsql-bugs@postgresql.org; Mon, 19 Nov 2012 13:26:17 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TaRMc-0007bP-2i for pgsql-bugs@postgresql.org; Mon, 19 Nov 2012 13:26:14 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1TaRMb-00045H-Hl for pgsql-bugs@postgresql.org; Mon, 19 Nov 2012 13:26:13 +0000 Date: Mon, 19 Nov 2012 13:26:13 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7677: listen_address 'localhost' listens not to IPv6 ::1 To: pgsql-bugs@postgresql.org From: bugs@ttyhoney.com X-Pg-Spam-Score: -2.3 (--) X-Archive-Number: 201211/152 X-Sequence-Number: 34710 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 =3D 'localhost' = TO listen_addresses =3D '::' 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