Re: BUG #2432: PID file not created if $PGDATA is different from Datadir - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #2432: PID file not created if $PGDATA is different from Datadir
Date
Msg-id 14771.1147367730@sss.pgh.pa.us
Whole thread Raw
In response to BUG #2432: PID file not created if $PGDATA is different from Datadir  ("Thomas Reiss" <thomas.reiss@interieur.gouv.fr>)
List pgsql-bugs
"Thomas Reiss" <thomas.reiss@interieur.gouv.fr> writes:
> The following bug has been logged online:
> Description:        PID file not created if $PGDATA is different from
> Datadir

Yes it is, but it's in the data_directory.  In general the postmaster
need not (and probably should not) have write permission where the
configure files are, so we're not going to be changing this.

> When I tried to shutdown PG with a simple pg_ctl stop, the tool claimed
> about a missing postmaster.pid file. pg_ctl status didn't worked either.

pg_ctl hasn't been taught to parse the config file to find out where
data_directory is, so it really doesn't work with this layout yet.
Sorry.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Casey Duncan
Date:
Subject: Re: BUG #2428: ERROR: out of memory, running INSERT SELECT statement
Next
From: Richard Yen
Date:
Subject: SIGSEGV happens over once a day