Skip site navigation (1) Skip section navigation (2)

Re: Occupied port warning

From: "Andrew Dunstan" <andrew(at)dunslane(dot)net>
To: <peter_e(at)gmx(dot)net>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Occupied port warning
Date: 2005-06-28 11:17:24
Message-ID: 1507.24.211.165.134.1119957444.squirrel@www.dunslane.net (view raw or flat)
Thread:
Lists: pgsql-hackers
Peter Eisentraut said:
> During a recent training session I was reminded about a peculiar
> misbehavior that recent PostgreSQL releases exhibit when the TCP port
> they are trying to bind to is occupied:
>
> LOG:  could not bind IPv4 socket: Address already in use
> HINT:  Is another postmaster already running on port 5432? If not, wait
>  a few seconds and retry.
> WARNING:  could not create listen socket for "localhost"
>
> The trainees found this behavior somewhat unuseful.  Can someone remind
>  me why this is not an error?  Does any other server software behave
> this way?
>

IIRC, in previous versions any bind failure was fatal, but in 8.0 we decided
to be slightly more forgiving and only bail out if we failed to bind at all.

cheers

andrew



In response to

Responses

pgsql-hackers by date

Next:From: Jan WieckDate: 2005-06-28 11:18:07
Subject: Re: Implementing SQL/PSM for PG 8.2
Previous:From: strkDate: 2005-06-28 11:09:02
Subject: CVS pg_config --includedir-server broken

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group