Re: BUG #6494: Listening to * fails for IP V6 - Mailing list pgsql-bugs

From Curd Reinert
Subject Re: BUG #6494: Listening to * fails for IP V6
Date
Msg-id OF95C01BF0.9B3D02DE-ONC12579B4.0031CA4F-C12579B4.003C7451@ppi.de
Whole thread Raw
In response to Re: BUG #6494: Listening to * fails for IP V6  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
pgsql-bugs-owner@postgresql.org schrieb am 29.02.2012 17:02:56:
> Curd Reinert <Curd.Reinert@ppi.de> writes:
> > The trouble is that under AIX, once you have bound an IP V4 socket to
a
> > port, it seems you can't bind a IP V6 socket to the same port. The
other
> > way round works. And AIX seems to return addrinfo with IP V4 addresses
in
> > front.
> Seems like that is a bug to file with IBM.
I agree. I will try to narrow it down to a simple example and send it to
IBM.

> code uglification,
I agree with that one, too.

> Can you work around this with a suitable setting of listen_addresses?
> That is, explicitly specify the V6 and then V4 addresses there?
Not really. Postgres is runnning at our customers sites, we don't know how
there networks are configured, and we don't know if IP addresses may
change. All we could do is describe the problem as a known bug when using
AIX, IPV6 and postgres together and explain the workaround.

Many thanks,

Curd

pgsql-bugs by date:

Previous
From: "k/a"
Date:
Subject: Re: BUG #6498: with recursive / union all
Next
From: thomas.pasch@nuclos.de
Date:
Subject: BUG #6500: Installer does not honour --serverport