Re: Address already in use? - Mailing list pgsql-general

From Tom Lane
Subject Re: Address already in use?
Date
Msg-id 9297.987211927@sss.pgh.pa.us
Whole thread Raw
In response to Re: Address already in use?  (Yann Ramin <atrus@atrustrivalie.org>)
List pgsql-general
Yann Ramin <atrus@atrustrivalie.org> writes:
> Simply remove /tmp/.s.PGSQL.5432.  Its safe to do this in a startup script.
> Postgres isn't too good about removing its UNIX socket if it has a
> semi-nonclean shutdown (system reboot among other things).

Although that's been a standard workaround for a long time, I've always
considered it fairly dangerous: what if the script is invoked at a time
other than system boot?  Fortunately, it should no longer be necessary
as of Postgres 7.1 --- we now have code to check for and remove a
leftover socket file safely.  I now recommend removing any automatic
socket-file deletion you may have in your startup script.

            regards, tom lane

pgsql-general by date:

Previous
From: Christoph Strebin
Date:
Subject: Case insensitive columns
Next
From: "Mitch Vincent"
Date:
Subject: Re: anti Christian bias?