Re: postgreslog - panic message - Mailing list pgsql-general

From Volkan YAZICI
Subject Re: postgreslog - panic message
Date
Msg-id 20060525130948.GA188@alamut
Whole thread Raw
In response to Re: postgreslog - panic message  (Richard Huxton <dev@archonet.com>)
List pgsql-general
On May 25 11:04, Richard Huxton wrote:
> surabhi.ahuja wrote:
> >hi,
> >i am getting the following error messages:
> >
> ><2006-05-24 15:28:08 CDT%>LOG:  could not bind IPv4 socket: Address
> >already in use
> ><2006-05-24 15:28:08 CDT%>HINT:  Is another postmaster already running on
> >port 5432? If not, wait a few seconds and retry.
> ><2006-05-24 15:28:08 CDT%>WARNING:  could not create listen socket for
> >"localhost"
> ><2006-05-24 15:28:08 CDT%>LOG:  database system was shut down at
> >2006-05-24 15:28:08 CDT
>
> This is what it says. You've either got:
> 1. another version of PostgreSQL running on port 5432
> 2. Something else on port 5432
> 3. The operating-system hasn't recycled the port after a shutdown (it
> can take a few seconds sometimes).

Just for curiosity, shouldn't SO_REUSEADDR (in
backend/libpq/pqcomm.c:342) handle the 3rd possibility in the above
list? Or isn't this behaviour guaranteed by SO_REUSEADDR on every
platform?


Regards.

pgsql-general by date:

Previous
From: CG
Date:
Subject: Postmaster crashes after upgrade to 8.1.4!
Next
From: Tom Lane
Date:
Subject: Re: postgreslog - panic message