Skip site navigation (1) Skip section navigation (2)

Re: Postgres running but no postmaster.pid

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "simon(dot)marshall" <simon(dot)marshall(at)metaswitch(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Postgres running but no postmaster.pid
Date: 2011-08-03 15:44:53
Message-ID: 18084.1312386293@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
"simon.marshall" <simon(dot)marshall(at)metaswitch(dot)com> writes:
> When I came to stop my postgres instance (in particular, a replication
> database using postgres version 9.0.3 running on port 5442) today it failed
> to stop because the postmaster.pid instance wasn't present, despite the
> process still running (seen by running ps -eaf | grep post and noting that
> the data directory was the same). There's nothing in /var/adm/messages to
> suggest any catastrophic disk problems and there's plenty of space on the
> drive.

> Any help would be greatly appreciated, as I'm stumped!

If I had to bet on the basis of that much information, I'd bet on
accidental invocation of a postmaster startup script that thinks it
should remove the postmaster.pid file before trying to launch a new
postmaster.  I've seen a lot of those, and every one of them is
dangerously broken.

			regards, tom lane

In response to

Responses

pgsql-bugs by date

Next:From: simon.marshallDate: 2011-08-03 15:51:47
Subject: Re: Postgres running but no postmaster.pid
Previous:From: simon.marshallDate: 2011-08-03 15:02:20
Subject: Postgres running but no postmaster.pid

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group