Thread: Warning: Don't delete those /tmp/.PGSQL.* files

Warning: Don't delete those /tmp/.PGSQL.* files

From
Martin Kutschker
Date:
> rm -f /tmp/.PGSQL.* && postmaster -i >log 2>log &

> Which works great. Except that I *kept* using this for two weeks
> after the view problem (damn that bash up-arrow laziness!), and
> yesterday, used it to restart PostgreSQL except (oops!) it was
> already running.
>
> Results: no database at all.

Shouldn't be the socket in a location like /var/run (on platforms that have a directory like this)? So that doing
somethingcareless like rm /tmp/* doesn't hurt too much. 

Masi