"Kevin Grittner" <[EMAIL PROTECTED]> writes:
> It appears that when pg_ctl gets a stop request for a given directory, it l=
> ooks for a pid file in that directory and signals that pid to stop.  It doe=
> sn't appear to check that the pid is for a PostgreSQL postmaster running ou=
> t of the given directory.  I think it should, although on a quick scan of t=
> he code, I didn't see a convenient way to do that.

[ shrug... ]  AFAICS there is no way to know that.

> I have some evidence that when we attempted to stop a PostgreSQL instance w=
> hich (it turned out) had died without cleaning up the pid file, it actually=
>  stopped another instance which was using a different data directory but ha=
> d wrapped around to the same pid.

The real question there is how come the postmaster died without removing
the pidfile.  It's not that easy to crash the postmaster ...

                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at


Reply via email to