forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit39ae0ef
committed
Fix EXPLAIN of SEARCH BREADTH FIRST queries some more.
Commit3f50b82 had an oversight: formerly, to deparse expressionsattached to a plan node, it was only necessary to update thedeparse_namespace ancestors list alongside calling set_deparse_plan.Now it's necessary to update the ancestors list *first*, becauseset_deparse_plan consults it, and one call site got that wrong.This error was masked in most cases because explain.c uses just oneList object for the ancestors list, updating it in-place as the planis scanned, so that we accidentally had the right List assigned todpns->ancestors before it was needed. It would fail only if aWorkTableScan node were the first one that we tried to deparse asubexpression of.Per report from Markus Winand. Like the previous patch,back-patch to v14.Discussion:https://postgr.es/m/648B0505-AA57-42C2-A2DA-E551DE46FA15@winand.at1 parent68f7c4b commit39ae0ef
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3681 | 3681 |
| |
3682 | 3682 |
| |
3683 | 3683 |
| |
3684 |
| - | |
3685 | 3684 |
| |
| 3685 | + | |
3686 | 3686 |
| |
3687 | 3687 |
| |
3688 | 3688 |
| |
| |||
4836 | 4836 |
| |
4837 | 4837 |
| |
4838 | 4838 |
| |
4839 |
| - | |
| 4839 | + | |
4840 | 4840 |
| |
4841 | 4841 |
| |
4842 | 4842 |
| |
|
0 commit comments
Comments
(0)