Re: FATAL: bogus data in lock file "postmaster.pid": ""
Bruce Momjian <bruce@momjian.us>
From: Bruce Momjian <bruce@momjian.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>, Robert Haas <robertmhaas@gmail.com>, Michael Beattie <mtbeedee@gmail.com>, Magnus Hagander <magnus@hagander.net>, Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>, Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2012-08-28T19:06:15Z
Lists: pgsql-hackers
Attachments
- pid.diff (text/x-diff) patch
On Mon, Aug 27, 2012 at 10:17:43PM -0400, Bruce Momjian wrote: > Seems pg_ctl would also need some cleanup if we change the error > message and/or timing. > > I am thinking we should just change the error message in the postmaster > and pg_ctl to say the file is empty, and call it done (no hint message). > If we do want a hint, say that either the file is stale from a crash or > another postmaster is starting up, and let the user diagnose it. Updated patch attached which just reports the file as empty. I assume we don't want the extra text output for pg_ctl like we do for the backend. -- Bruce Momjian <bruce@momjian.us> http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +