From: Tom Lane <tgl@sss.pgh.pa.us>
To: exclusion@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15694: Server crash in EXPLAIN with LATERAL and a partitioned table
Date: Thu, 14 Mar 2019 10:40:20 -0400
Message-ID: <3812.1552574420@sss.pgh.pa.us> (raw)
In-Reply-To: <15694-74f2ca97e7044f7f@postgresql.org>
References: <15694-74f2ca97e7044f7f@postgresql.org>
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
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 using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, exclusion@gmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15694: Server crash in EXPLAIN with LATERAL and a partitioned table
In-Reply-To: <3812.1552574420@sss.pgh.pa.us>
* 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