Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6Jk1-0001Ig-MI for pgsql-hackers@arkaria.postgresql.org; Sun, 22 Oct 2017 17:08:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e6Jk1-00017P-4I for pgsql-hackers@arkaria.postgresql.org; Sun, 22 Oct 2017 17:08:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e6JiS-0006jx-4g for pgsql-hackers@postgresql.org; Sun, 22 Oct 2017 17:07:12 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e6JiP-0003JZ-4s for pgsql-hackers@postgresql.org; Sun, 22 Oct 2017 17:07:11 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v9MH73E9015464; Sun, 22 Oct 2017 13:07:03 -0400 From: Tom Lane To: Andreas Seltenreich cc: pgsql-hackers@postgresql.org Subject: Re: [sqlsmith] Failed assertion in adjust_appendrel_attrs_mutator In-reply-to: <87r2tvt9f1.fsf@ansel.ydns.eu> References: <87r2tvt9f1.fsf@ansel.ydns.eu> Comments: In-reply-to Andreas Seltenreich message dated "Sun, 22 Oct 2017 18:49:22 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15462.1508692023.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 22 Oct 2017 13:07:03 -0400 Message-ID: <15463.1508692023@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Andreas Seltenreich writes: > testing master as of 7c981590c2, sqlsmith just triggered the following > assertion: > TRAP: FailedAssertion("!(!((((const Node*)(node))->type) =3D=3D T_SubLink= ))", File: "prepunion.c", Line: 2231) Hmm. adjust_appendrel_attrs() thinks it's only used after conversion of sublinks to subplans, but this is a counterexample. I wonder if that assumption was ever correct? Or maybe we need to rethink what it does when recursing into RTE subqueries. regards, tom lane --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers