Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id DAC391337B83 for ; Wed, 13 Apr 2011 11:43:04 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 08892-07 for ; Wed, 13 Apr 2011 14:42:48 +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 6A2B11337B67 for ; Wed, 13 Apr 2011 11:42:48 -0300 (ADT) 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 p3DEgata004603; Wed, 13 Apr 2011 10:42:36 -0400 (EDT) To: "Anton Kuznetsov" cc: pgsql-bugs@postgresql.org Subject: Re: BUG #5977: Crash on delete In-reply-to: <201104130924.p3D9OYVx074761@wwwmaster.postgresql.org> References: <201104130924.p3D9OYVx074761@wwwmaster.postgresql.org> Comments: In-reply-to "Anton Kuznetsov" message dated "Wed, 13 Apr 2011 09:24:34 +0000" Date: Wed, 13 Apr 2011 10:42:36 -0400 Message-ID: <4602.1302705756@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.361 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FSL_RU_URL=2.271, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/75 X-Sequence-Number: 29994 "Anton Kuznetsov" writes: > Server crases on delete and than automatically restarts; > Log message was: > TRAP: FailesAssertion("!(outerstartsel <= outerendsel)", File: > "costsize.c", String: 1540) That's pretty interesting ... can you put together a self-contained test case? That might be a bit difficult because this is probably dependent on data statistics. But it should at least be possible to determine which join clause is causing the problem, and then show us the pg_stats entries for the columns used in the join. This isn't going to be dependent on whether the command is a DELETE or not, just the table join conditions. regards, tom lane