Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id C7DB41337BA5 for ; Wed, 9 Feb 2011 23:37:45 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 46255-02-3 for ; Thu, 10 Feb 2011 03:37:39 +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 51C8F1337BB4 for ; Wed, 9 Feb 2011 23:37:38 -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 p1A3bauI009889; Wed, 9 Feb 2011 22:37:36 -0500 (EST) To: Alvaro Herrera cc: Denis Feklushkin , pgsql-bugs Subject: Re: [Fwd: ERROR: cannot extract system attribute from minimal tuple] In-reply-to: <1297299921-sup-8185@alvh.no-ip.org> References: <1297281208.4165.0.camel@localhost> <1297299921-sup-8185@alvh.no-ip.org> Comments: In-reply-to Alvaro Herrera message dated "Thu, 10 Feb 2011 00:11:48 -0300" Date: Wed, 09 Feb 2011 22:37:36 -0500 Message-ID: <9888.1297309056@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/91 X-Sequence-Number: 29363 Alvaro Herrera writes: > Hmm, yeah, in an assert-enabled build of HEAD it dies with: > TRAP: FailedAssertion(«!(attno > 0)», Archivo: «/pgsql/source/HEAD/src/backend/executor/execJunk.c», Línea: 251) > I don't have time to track this down right now ... It's a shortcoming in the PlanRowMark+resjunk column data structure: when we flatten subqueries, the rangetable indexes of the relations to be row-locked can change, but the resjunk column names already assigned to represent their ctid's aren't updated. Working on a fix now. regards, tom lane