Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zkeqd-0001FJ-Ok for pgsql-committers@arkaria.postgresql.org; Fri, 09 Oct 2015 21:05:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zkeqd-0008Jj-92 for pgsql-committers@arkaria.postgresql.org; Fri, 09 Oct 2015 21:05:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Zkeqc-0008Jd-Vm for pgsql-committers@postgresql.org; Fri, 09 Oct 2015 21:05:03 +0000 Received: from smtp-auth.no-ip.com ([8.23.224.61] helo=out.smtp-auth.no-ip.com) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZkeqX-0001FO-HQ for pgsql-committers@postgresql.org; Fri, 09 Oct 2015 21:05:02 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [200.104.52.149]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 2C3CE400B8E; Fri, 9 Oct 2015 14:04:50 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 475F2170F; Fri, 9 Oct 2015 18:04:48 -0300 (CLT) Date: Fri, 9 Oct 2015 18:04:48 -0300 From: Alvaro Herrera To: Tom Lane Cc: Thom Brown , pgsql-committers Subject: Re: pgsql: Perform an immediate shutdown if the postmaster.pid file is remo Message-ID: <20151009210448.GN4405@alvherre.pgsql> References: <47566.1444424286@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <47566.1444424286@sss.pgh.pa.us> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Tom Lane wrote: > Thom Brown writes: > > The log contains a misleading output following the removal of the pid file: > > > 2015-10-09 15:39:32 BST [31507]: [4-1] user=,db=,client= LOG: could > > not open file "postmaster.pid": No such file or directory > > 2015-10-09 15:39:32 BST [31507]: [5-1] user=,db=,client= LOG: > > performing immediate shutdown because data directory lock file is > > invalid > > 2015-10-09 15:39:32 BST [31507]: [6-1] user=,db=,client= LOG: > > received immediate shutdown request > > 2015-10-09 15:39:32 BST [31556]: [1-1] user=,db=,client= WARNING: > > terminating connection because of crash of another server process > > 2015-10-09 15:39:32 BST [31556]: [2-1] user=,db=,client= DETAIL: The > > postmaster has commanded this server process to roll back the current > > transaction and exit, because another server process exited abnormally > > and possibly corrupted shared memory. > > 2015-10-09 15:39:32 BST [31556]: [3-1] user=,db=,client= HINT: In a > > moment you should be able to reconnect to the database and repeat your > > command. > > Looks as-expected to me. We're forcing a panic stop. I think he's complaining that the final HINT is misleading. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers