forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1cc29fe
committed
Teach EXPLAIN to print PARAM_EXEC Params as the referenced expressions,
rather than just $N. This brings the display of nestloop-inner-indexscanplans back to where it's been, and incidentally improves the display ofSubPlan parameters as well. In passing, simplify the EXPLAIN code byhaving it deal primarily in the PlanState tree rather than separatelysearching Plan and PlanState trees. This is noticeably cleaner forsubplans, and about a wash elsewhere.One small difference from previous behavior is that EXPLAIN will no longerqualify local variable references in inner-indexscan plan nodes, since itno longer sees such nodes as possibly referencing multiple tables. Varsreferenced through PARAM_EXEC Params are still forcibly qualified, though,so I don't think the display is any more confusing than before. Adjust acouple of examples in the documentation to match this behavior.1 parent4504a1b commit1cc29fe
File tree
5 files changed
+481
-286
lines changed- doc/src/sgml
- src
- backend
- commands
- utils/adt
- include/utils
5 files changed
+481
-286
lines changedLines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| |||
316 | 316 |
| |
317 | 317 |
| |
318 | 318 |
| |
319 |
| - | |
| 319 | + | |
320 | 320 |
| |
321 | 321 |
| |
322 | 322 |
| |
| |||
329 | 329 |
| |
330 | 330 |
| |
331 | 331 |
| |
332 |
| - | |
| 332 | + | |
333 | 333 |
| |
334 | 334 |
| |
335 | 335 |
| |
| |||
405 | 405 |
| |
406 | 406 |
| |
407 | 407 |
| |
408 |
| - | |
| 408 | + | |
409 | 409 |
| |
410 | 410 |
| |
411 | 411 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| |||
353 | 353 |
| |
354 | 354 |
| |
355 | 355 |
| |
356 |
| - | |
| 356 | + | |
357 | 357 |
| |
358 | 358 |
| |
359 | 359 |
| |
|
0 commit comments
Comments
(0)