Dangling postmaster.pid causes postgresql startup to fail

Bug #26238 reported by Christian Reis
6
Affects Status Importance Assigned to Milestone
postgresql (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

Every once in a while postgresql fails to start up, and causes much grief among
coworkers until I rm /var/lib/postgres/data/postmaster.pid. I think this file is
left around from an unclean shutdown, but I guess if I am trying to issue a
start we should either check that the pid there exists, or rm -f the file.

Revision history for this message
Martin Pitt (pitti) wrote :

That looks like Hoary. Breezy's postgresql-common package tries very hard to
cope with crashed postmasters and invalid pid files. (It even has a testsuite
for it :) ).

Hoary will not be fixed any more, this is a pretty delicate issue and things
easily get worse when hacking in the old huge shell scripts. Can you please
scream loudly and reopen this bug (or ask me to do it) if this still bites in
Breezy/Dapper?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.