Re: [HACKERS] pid file for postmaster?

Hannu Krosing <hannu@tm.ee>

From: Hannu Krosing <hannu@tm.ee>
To: Michael Meskes <meskes@postgreSQL.org>
Cc: pgsql-hackers@hub.org
Date: 1999-11-25T19:38:09Z
Lists: pgsql-hackers
Michael Meskes wrote:
> 
> On Wed, Nov 24, 1999 at 01:33:37AM -0500, Tom Lane wrote:
> > > it. I think the pid file could be placed under $PGDATA. Opinions?
> > ...
> > $PGDATA seems like the right place to put the file, since we can only
> > have one active postmaster at a time in a database directory.
> 
> Ehem, I think the correct place would be /var/run. At least that's what the
> filesystem standard says IIRC.

But that forces us to distinguish between several running backends, with the 
main aim of _not_ allowing two distinct backends to be run from the same 
$PGDATA.

we could of course start naming them like /var/run/pgsql.pid.for.var.lib.pgsql

------------
Hannu