Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id D5F061337B4F for ; Fri, 25 Feb 2011 11:39:28 -0400 (AST) 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 18309-02 for ; Fri, 25 Feb 2011 15:39:23 +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 19F151337B43 for ; Fri, 25 Feb 2011 11:39:20 -0400 (AST) 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 p1PFdJCB021682; Fri, 25 Feb 2011 10:39:19 -0500 (EST) To: "Sergey Aleynikov" cc: pgsql-bugs@postgresql.org Subject: Re: BUG #5900: Coredump on executing query In-reply-to: <201102251211.p1PCB8Vo083286@wwwmaster.postgresql.org> References: <201102251211.p1PCB8Vo083286@wwwmaster.postgresql.org> Comments: In-reply-to "Sergey Aleynikov" message dated "Fri, 25 Feb 2011 12:11:08 +0000" Date: Fri, 25 Feb 2011 10:39:19 -0500 Message-ID: <21681.1298648359@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201102/220 X-Sequence-Number: 29492 "Sergey Aleynikov" writes: > PostgreSQL version: 8.4.1 > Yesterday i've got a non-repeatable database server crash with following > messages in server log: > [ crash is within auto_explain according to backtrace ] I think most likely you got bit by this known bug: commit 85a646aee39b97b68bd70956db95afd11cde93a8 Author: Tom Lane Date: Thu Feb 18 03:06:53 2010 +0000 Force READY portals into FAILED state when a transaction or subtransaction is aborted, if they were created within the failed xact. This prevents ExecutorEnd from being run on them, which is a good idea because they may contain references to tables or other objects that no longer exist. In particular this is hazardous when auto_explain is active, but it's really rather surprising that nobody has seen an issue with this before. I'm back-patching this to 8.4, since that's the first version that contains auto_explain or an ExecutorEnd hook, but I wonder whether we shouldn't back-patch further. IOW, if the query was aborted, it's unsafe to run auto_explain on it but the system sometimes tried anyway. Please update to 8.4.3 or later. regards, tom lane