From: Tom Lane <tgl@sss.pgh.pa.us>
To: simon.marshall <simon.marshall@metaswitch.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Postgres running but no postmaster.pid
Date: Wed, 03 Aug 2011 11:44:53 -0400
Message-ID: <18084.1312386293@sss.pgh.pa.us> (raw)
In-Reply-To: <1312383740257-4662510.post@n5.nabble.com>
References: <1312383740257-4662510.post@n5.nabble.com>
"simon.marshall" <simon.marshall@metaswitch.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, simon.marshall@metaswitch.com
Subject: Re: Postgres running but no postmaster.pid
In-Reply-To: <18084.1312386293@sss.pgh.pa.us>
References: <1312383740257-4662510.post@n5.nabble.com> <18084.1312386293@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox