From: Tom Lane <tgl@sss.pgh.pa.us>
To: Антон Кузнецов <antosha86@mail.ru>
Cc: pgsql-bugs@postgreSQL.org
Subject: Re: Re[2]: BUG #5977: Crash on delete
Date: Fri, 15 Apr 2011 17:27:22 -0400
Message-ID: <7270.1302902842@sss.pgh.pa.us> (raw)
In-Reply-To: <E1QAN1t-00019f-00.antosha86-mail-ru@f149.mail.ru>
References: <201104130924.p3D9OYVx074761@wwwmaster.postgresql.org>
<4602.1302705756@sss.pgh.pa.us>
<E1QAN1t-00019f-00.antosha86-mail-ru@f149.mail.ru>
=?utf-8?Q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD_=D0=9A=D1=83=D0=B7=D0=BD=D0=B5=D1=86=D0=BE=D0=B2?= <antosha86@mail.ru> writes:
> TRAP: FailesAssertion("!(outerstartsel <= outerendsel)", File:
> "costsize.c", String: 1540)
On reflection it seems the only way you could get past the preceding
"Assert(outer_skip_rows <= outer_rows)" and then crash there would be
if outer_path_rows was NaN, which would result in both outerstartsel and
outerendsel becoming NaN, and then the comparison would fail to yield
true.
(A negative value of outer_path_rows would do it too, but that case has
been excluded at the top of the function.)
So the actual bug is presumably that some other piece of the planner is
returning NaN instead of a valid rowcount estimate. Unfortunately,
there are a whole lot of places to look, and not nearly enough
information here to narrow it down ...
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, antosha86@mail.ru
Subject: Re: BUG #5977: Crash on delete
In-Reply-To: <7270.1302902842@sss.pgh.pa.us>
References: <201104130924.p3D9OYVx074761@wwwmaster.postgresql.org> <4602.1302705756@sss.pgh.pa.us> <E1QAN1t-00019f-00.antosha86-mail-ru@f149.mail.ru> <7270.1302902842@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