Re: BUG #15694: Server crash in EXPLAIN with LATERAL and a partitioned table - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #15694: Server crash in EXPLAIN with LATERAL and a partitioned table
Date
Msg-id 3812.1552574420@sss.pgh.pa.us
Whole thread Raw
In response to BUG #15694: Server crash in EXPLAIN with LATERAL and a partitioned table  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
PG Bug reporting form <noreply@postgresql.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


pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #15694: Server crash in EXPLAIN with LATERAL and a partitioned table
Next
From: Masahiko Sawada
Date:
Subject: Re: Query issues on Foreign tables