pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Seltenreich <seltenreich@gmx.de>
To: pgsql-hackers@postgresql.org
Subject: [sqlsmith] Failed assertion in joinrels.c
Date: Sat, 01 Aug 2015 02:56:22 +0200
Message-ID: <87wpxfygg9.fsf@credativ.de> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

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… 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 = rel_4116556.ordinal_position )
	right join pg_catalog.pg_roles as rel_4116557
	on (rel_4116556.maximum_cardinality = rel_4116557.rolconnlimit )
      on (rel_4116461.passwd = 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 ~>=~ rel_4116612.comment
		fetch first 116 rows only) as subq_647410
	  where (subq_647410.c7 !~~* subq_647410.c7)
	    or ((subq_647410.c3 = 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 = rel_4116662.sh_avail )
	inner join public.rtest_vview3 as rel_4116663
	on (rel_4116661.f1 = rel_4116663.a )
      on (subq_647409.c0 = rel_4116662.sh_avail )
    on (rel_4116555.b = 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;


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (55+ messages)  latest in thread

Message-ID: <87wpxfygg9.fsf@credativ.de>
Permalink:  ../87wpxfygg9.fsf@credativ.de/
Also on:    postgresql.org/message-id/87wpxfygg9.fsf@credativ.de

 · 

reply

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-hackers@postgresql.org
  Cc: seltenreich@gmx.de
  Subject: Re: [sqlsmith] Failed assertion in joinrels.c
  In-Reply-To: <87wpxfygg9.fsf@credativ.de>
  References: <87wpxfygg9.fsf@credativ.de>

* 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