Re: BUG #15694: Server crash in EXPLAIN with LATERAL and a partitioned table
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: exclusion@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Date: 2019-03-14T14:40:20Z
Lists: 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
Commits
-
Ensure dummy paths have correct required_outer if rel is parameterized.
- 0a9d7e1f6d81 12.0 landed
- 98f8ffa18ebe 9.4.22 landed
- 71288846efc8 9.5.17 landed
- d4b754c876d3 10.8 landed
- 5b866005c8b0 11.3 landed
- 0255329a780f 9.6.13 landed