Re: postmaster.pid file auto-clean up?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Sebastien Boisvert <sebastienboisvert(at)yahoo(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: postmaster.pid file auto-clean up?
Date: 2012-08-20 17:31:06
Message-ID: 5117.1345483866@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Sebastien Boisvert <sebastienboisvert(at)yahoo(dot)com> writes:
> I vaguely remember reading in the release notes (around the time 9.x was released) something about it automatically clearing out the postmaster.pid file if it was found to be stale/invalid when starting the the database server, however I cannot find any reference to this anymore.

It's always done that.

We occasionally see startup scripts that "helpfully" remove the .pid
file. They are, without exception, wrong and dangerous. The postmaster
is much more likely to get this right by itself.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message elliott 2012-08-20 17:53:47 Database Bloat
Previous Message Steven Schlansker 2012-08-20 17:29:33 Re: Ignore hash indices on replicas