X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id DC9CB475EE2 for ; Thu, 8 May 2003 15:40:17 -0400 (EDT) Received: from wolff.to (wolff.to [66.93.249.74]) by postgresql.org (Postfix) with SMTP id 0DEBB474E4F for ; Thu, 8 May 2003 15:40:17 -0400 (EDT) Received: (qmail 4149 invoked by uid 500); 8 May 2003 19:41:31 -0000 Date: Thu, 8 May 2003 14:41:31 -0500 From: Bruno Wolff III To: mlaks Cc: pgsql-admin@postgresql.org Subject: Re: Postgresql goes down need to restart (redhat postgresql service script) lock files removal avoid 2 postmasters Message-ID: <20030508194131.GA4130@wolff.to> Mail-Followup-To: mlaks , pgsql-admin@postgresql.org References: <200305081250.49994.mlaks@bellatlantic.net> <200305081410.52791.mlaks@bellatlantic.net> <20030508184033.GA3731@wolff.to> <200305081457.15993.mlaks@bellatlantic.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200305081457.15993.mlaks@bellatlantic.net> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-38.0 required=5.0 tests=BAYES_10,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MUTT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/100 X-Sequence-Number: 8662 On Thu, May 08, 2003 at 14:57:15 -0400, mlaks wrote: > > 1. check for a running postmaster > 2 if not delete the /var/lib/pgsql/data/postmaster.pid files > > where would we go wrong with duplicate postmistresses? postmaster already does that, but there may be cases where it thinks there is a running postmater and there really isn't. In that case you would need to verify this, remove the lock file and start by hand. Having two postmasters running at the same time for the same data directory will corrupt your databases.