From: Tom Lane <tgl@sss.pgh.pa.us>
To: Sergey Aleynikov <sergey.aleynikov@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5900: Coredump on executing query
Date: Fri, 25 Feb 2011 10:39:19 -0500
Message-ID: <21681.1298648359@sss.pgh.pa.us> (raw)
In-Reply-To: <201102251211.p1PCB8Vo083286@wwwmaster.postgresql.org>
References: <201102251211.p1PCB8Vo083286@wwwmaster.postgresql.org>
"Sergey Aleynikov" <sergey.aleynikov@gmail.com> 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 <tgl@sss.pgh.pa.us>
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
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, sergey.aleynikov@gmail.com
Subject: Re: BUG #5900: Coredump on executing query
In-Reply-To: <21681.1298648359@sss.pgh.pa.us>
References: <201102251211.p1PCB8Vo083286@wwwmaster.postgresql.org> <21681.1298648359@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