Re: BUG #15694: Server crash in EXPLAIN with LATERAL and a partitioned table

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: exclusion(at)gmail(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #15694: Server crash in EXPLAIN with LATERAL and a partitioned table
Date: 2019-03-14 14:40:20
Message-ID: 3812.1552574420@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> CREATE TABLE prt1_l (a int) PARTITION BY RANGE(a);
> CREATE TABLE prt2_l (a int);

> EXPLAIN
> SELECT * FROM prt1_l t1 LEFT JOIN LATERAL
> (SELECT t1.a as t1a, prt1_l.a FROM prt1_l) t2 ON t1.a = t2.a;

> crashes the server with the stack trace:

Huh. Clearly, when we added that Assert, we should've fixed
set_dummy_rel_pathlist so that it would properly populate the
required_outer of the dummy path. I'm surprised though that
this wasn't already exposed by the existing regression tests...

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Wu, Fei 2019-03-15 03:47:05 Willing to fix a TODO case in libpq module
Previous Message PG Bug reporting form 2019-03-14 11:24:27 BUG #15694: Server crash in EXPLAIN with LATERAL and a partitioned table