forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit79edb2b
committed
Fix recursion into previously planned sub-query in examine_simple_variable.
This code was looking at the sub-Query tree as seen in the parent query'sRangeTblEntry; but that's the pristine parser output, and what we need tolook at is the tree as it stands at the completion of planning. Otherwisewe might pick up a Var that references a subquery that got flattened andhence has no RelOptInfo in the subroot. Per report from Peter Geoghegan.1 parent054219c commit79edb2b
1 file changed
+11
-0
lines changedLines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4382 | 4382 |
| |
4383 | 4383 |
| |
4384 | 4384 |
| |
| 4385 | + | |
| 4386 | + | |
| 4387 | + | |
| 4388 | + | |
| 4389 | + | |
| 4390 | + | |
| 4391 | + | |
| 4392 | + | |
| 4393 | + | |
| 4394 | + | |
| 4395 | + | |
4385 | 4396 |
| |
4386 | 4397 |
| |
4387 | 4398 |
| |
|
0 commit comments
Comments
(0)