Re: postgreslog - panic message

From: Volkan YAZICI <yazicivo(at)ttnet(dot)net(dot)tr>
To: Richard Huxton <dev(at)archonet(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: postgreslog - panic message
Date: 2006-05-25 13:09:48
Message-ID: 20060525130948.GA188@alamut
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-05-25 13:57:55 Re: postgreslog - panic message
Previous Message Brandon E Hofmann 2006-05-25 12:42:06 Temp Tables