Re: Occupied port warning - Mailing list pgsql-hackers

From Abhijit Menon-Sen
Subject Re: Occupied port warning
Date
Msg-id 20050628134042.GA27277@penne.toroid.org
Whole thread Raw
In response to Re: Occupied port warning  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
At 2005-06-28 15:14:29 +0200, peter_e@gmx.net wrote:
>
> I recall that it had something to do with IPv6, but I'm not sure.

Under Linux, if you bind to AF_INET6/::0, a subsequent bind to AF_INET/0
will fail, but the IPv4 address is also bound by the first call, and the
program will accept IPv4 connections anyway (BSD behaves differently).

Maybe that had something to do with it? I remember I had to add code to
my program to allow that second bind to fail without complaint, and now
my code also exits only if it can't bind anything at all.

(For what it's worth, I don't think this behaviour is such a big deal.)

-- ams


pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: Implementing SQL/PSM for PG 8.2 - debugger
Next
From: Dmitry Karasik
Date:
Subject: bug: LC_CTYPE=en_US.UTF-8 confuses query planner