forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd1a4db8
committed
Improve EXPLAIN's ability to cope with LATERAL references in plans.
push_child_plan/pop_child_plan didn't bother to adjust the "ancestors"list of parent plan nodes when descending to a child plan node. I thinkthis was okay when it was written, but it's not okay in the presence ofLATERAL references, since a subplan node could easily be returning aLATERAL value back up to the same nestloop node that provides the value.Per changed regression test results, the omission led to failure tointerpret Param nodes that have perfectly good interpretations.1 parente1a6375 commitd1a4db8
File tree
2 files changed
+11
-9
lines changed- src
- backend/utils/adt
- test/regress/expected
2 files changed
+11
-9
lines changedLines changed: 10 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2312 | 2312 |
| |
2313 | 2313 |
| |
2314 | 2314 |
| |
2315 |
| - | |
2316 |
| - | |
2317 |
| - | |
2318 |
| - | |
2319 |
| - | |
2320 |
| - | |
2321 |
| - | |
2322 |
| - | |
| 2315 | + | |
| 2316 | + | |
2323 | 2317 |
| |
2324 | 2318 |
| |
2325 | 2319 |
| |
| |||
2331 | 2325 |
| |
2332 | 2326 |
| |
2333 | 2327 |
| |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
2334 | 2333 |
| |
2335 | 2334 |
| |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
2336 | 2338 |
| |
2337 | 2339 |
| |
2338 | 2340 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3172 | 3172 |
| |
3173 | 3173 |
| |
3174 | 3174 |
| |
3175 |
| - | |
| 3175 | + | |
3176 | 3176 |
| |
3177 | 3177 |
| |
3178 | 3178 |
| |
|
0 commit comments
Comments
(0)