Re: postgres under linux can't start because of postmaster.pid

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Richard Wang" <ruc_wang(at)hotmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: postgres under linux can't start because of postmaster.pid
Date: 2007-10-24 12:20:04
Message-ID: 29598.1193228404@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Richard Wang" <ruc_wang(at)hotmail(dot)com> writes:
> I construct a postmaster.pid file and then set the pid to be one of existing
> process id(not postgres, e.g vim), then I run postgres. This may happen if
> postgres crashed last time and left a postmaster.pid file, and last postgres
> id is reused by another process which is not postgres now.

Don't do that. The postmaster is perfectly capable of recovering on
its own, why would you want to mess with the postmaster.pid file?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Brendan Jurd 2007-10-24 12:20:43 Re: Feature Freeze date for 8.4
Previous Message Michael Paesold 2007-10-24 12:17:08 Re: Feature Freeze date for 8.4