Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZLL6x-0007mS-BY for pgsql-hackers@arkaria.postgresql.org; Sat, 01 Aug 2015 00:57:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZLL6w-0004fi-0x for pgsql-hackers@arkaria.postgresql.org; Sat, 01 Aug 2015 00:57:14 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZLL6t-0004eA-4u for pgsql-hackers@postgresql.org; Sat, 01 Aug 2015 00:57:11 +0000 Received: from gauss.credativ.com ([93.94.130.89]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZLL6q-0006iO-4Z for pgsql-hackers@postgresql.org; Sat, 01 Aug 2015 00:57:09 +0000 Received: from gauss.credativ.com (localhost [127.0.0.1]) by gauss.credativ.com (Postfix) with ESMTP id C7CC11450011; Sat, 1 Aug 2015 02:57:03 +0200 (CEST) Received: from ex (ip-109-41-158-143.web.vodafone.de [109.41.158.143]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: ase@gauss.credativ.com) by gauss.credativ.com (Postfix) with ESMTPSA id 578F01450010 for ; Sat, 1 Aug 2015 02:57:03 +0200 (CEST) From: Andreas Seltenreich To: pgsql-hackers@postgresql.org Subject: [sqlsmith] Failed assertion in joinrels.c User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4 (gnu/linux) Message-ID: <87wpxfygg9.fsf@credativ.de> Date: Sat, 01 Aug 2015 02:56:22 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -2.6 (--) 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 Hi, sqlsmith triggered the following assertion in master (c188204). TRAP: FailedAssertion("!(!bms_overlap(joinrelids, sjinfo->min_lefthand))", = File: "joinrels.c", Line: 500) As usual, the query is against the regression database. It is rather unwieldy=E2=80=A6 I wonder if I should stop working on new grammar rules and instead work on some post-processing that prunes the AST as much as possible while maintaining the failure mode. regards, andreas select subq_647409.c0 as c0, subq_647409.c0 as c1 from public.customer as rel_4116461 left join public.clstr_tst_s as rel_4116555 left join information_schema.columns as rel_4116556 on (rel_4116555.rf_a =3D rel_4116556.ordinal_position ) right join pg_catalog.pg_roles as rel_4116557 on (rel_4116556.maximum_cardinality =3D rel_4116557.rolconnlimit ) on (rel_4116461.passwd =3D rel_4116557.rolpassword ) left join (select subq_647410.c8 as c0 from public.char_tbl as rel_4116611, lateral (select rel_4116612.name as c0, rel_4116612.comment as c1, rel_4116612.nslots as c2, rel_4116612.comment as c3, rel_4116612.nslots as c4, rel_4116612.nslots as c5, rel_4116612.comment as c6, rel_4116612.comment as c7, rel_4116612.nslots as c8, rel_4116612.nslots as c9, rel_4116612.nslots as c10 from public.hub as rel_4116612 where rel_4116612.comment ~>=3D~ rel_4116612.comment fetch first 116 rows only) as subq_647410 where (subq_647410.c7 !~~* subq_647410.c7) or ((subq_647410.c3 =3D subq_647410.c3) and ((subq_647410.c7 ~* subq_647410.c6) and (subq_647410.c7 @@ subq_647410.c7))) fetch first 152 rows only) as subq_647409 inner join public.int4_tbl as rel_4116661 inner join public.shoe as rel_4116662 on (rel_4116661.f1 =3D rel_4116662.sh_avail ) inner join public.rtest_vview3 as rel_4116663 on (rel_4116661.f1 =3D rel_4116663.a ) on (subq_647409.c0 =3D rel_4116662.sh_avail ) on (rel_4116555.b =3D rel_4116661.f1 ) where ((rel_4116557.rolvaliduntil is NULL) or (rel_4116663.b !~ rel_4116461.name)) or (rel_4116661.f1 is not NULL) fetch first 80 rows only; --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers