Bruno Wolff III <bruno@wolff.to> writes:
> Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Well, if you know any vendors who move postmaster.pid out of the PGDATA
>> directory, let us know so we can knock some sense into their heads.
> I thought Fedora did, but there are actually two files, one in /var/run
> and another in /var/lib/pgsql/data .
Right, we put in the "external_pid_file" option to satisfy people who
wanted something under /var/run ... but Postgres itself makes no use
of that file, we just write it out during postmaster start. The
postmaster.pid file, on the other hand, is a critical safety interlock
to keep two postmasters from starting in the same data directory.
regards, tom lane