Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id A16D1B5D800 for ; Wed, 3 Aug 2011 12:45:03 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 34879-06 for ; Wed, 3 Aug 2011 15:44:56 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id B1EB5B5DBDC for ; Wed, 3 Aug 2011 12:44:55 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p73FiruV018085; Wed, 3 Aug 2011 11:44:53 -0400 (EDT) To: "simon.marshall" cc: pgsql-bugs@postgresql.org Subject: Re: Postgres running but no postmaster.pid In-reply-to: <1312383740257-4662510.post@n5.nabble.com> References: <1312383740257-4662510.post@n5.nabble.com> Comments: In-reply-to "simon.marshall" message dated "Wed, 03 Aug 2011 08:02:20 -0700" Date: Wed, 03 Aug 2011 11:44:53 -0400 Message-ID: <18084.1312386293@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.701 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.801 X-Spam-Level: X-Archive-Number: 201108/23 X-Sequence-Number: 30835 "simon.marshall" 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