forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitabe45a9
committed
Fix EXPLAIN output for cases where parent table is excluded by constraints.
The previous coding in EXPLAIN always labeled a ModifyTable node with thename of the target table affected by its first child plan. When originallywritten, this was necessarily the parent table of the inheritance tree,so everything was unconfusing. But when we added NO INHERIT constraints,it became possible for the parent table to be deleted from the plan byconstraint exclusion while still leaving child tables present. This led tothe ModifyTable plan node being labeled with the first surviving child,which was deemed confusing. Fix it by retaining the parent table's RTindex in a new field in ModifyTable.Etsuro Fujita, reviewed by Ashutosh Bapat and myself1 parent931bf3e commitabe45a9
File tree
8 files changed
+29
-14
lines changed- src
- backend
- commands
- nodes
- optimizer/plan
- include
- nodes
- optimizer
8 files changed
+29
-14
lines changedLines changed: 2 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
736 | 736 |
| |
737 | 737 |
| |
738 | 738 |
| |
739 |
| - | |
740 | 739 |
| |
741 |
| - | |
| 740 | + | |
742 | 741 |
| |
743 | 742 |
| |
744 | 743 |
| |
| |||
2192 | 2191 |
| |
2193 | 2192 |
| |
2194 | 2193 |
| |
2195 |
| - | |
2196 |
| - | |
2197 |
| - | |
2198 |
| - | |
2199 |
| - | |
2200 |
| - | |
2201 |
| - | |
2202 |
| - | |
2203 |
| - | |
2204 |
| - | |
| 2194 | + | |
2205 | 2195 |
| |
2206 | 2196 |
| |
2207 | 2197 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
175 | 175 |
| |
176 | 176 |
| |
177 | 177 |
| |
| 178 | + | |
178 | 179 |
| |
179 | 180 |
| |
180 | 181 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
327 | 327 |
| |
328 | 328 |
| |
329 | 329 |
| |
| 330 | + | |
330 | 331 |
| |
331 | 332 |
| |
332 | 333 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4809 | 4809 |
| |
4810 | 4810 |
| |
4811 | 4811 |
| |
| 4812 | + | |
4812 | 4813 |
| |
4813 | 4814 |
| |
4814 | 4815 |
| |
| |||
4857 | 4858 |
| |
4858 | 4859 |
| |
4859 | 4860 |
| |
| 4861 | + | |
4860 | 4862 |
| |
4861 | 4863 |
| |
4862 | 4864 |
| |
|
Lines changed: 18 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
607 | 607 |
| |
608 | 608 |
| |
609 | 609 |
| |
| 610 | + | |
610 | 611 |
| |
611 | 612 |
| |
612 | 613 |
| |
| |||
790 | 791 |
| |
791 | 792 |
| |
792 | 793 |
| |
| 794 | + | |
793 | 795 |
| |
794 | 796 |
| |
795 | 797 |
| |
| |||
924 | 926 |
| |
925 | 927 |
| |
926 | 928 |
| |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
927 | 943 |
| |
928 | 944 |
| |
929 | 945 |
| |
| |||
1051 | 1067 |
| |
1052 | 1068 |
| |
1053 | 1069 |
| |
| 1070 | + | |
1054 | 1071 |
| |
1055 | 1072 |
| |
1056 | 1073 |
| |
| |||
2260 | 2277 |
| |
2261 | 2278 |
| |
2262 | 2279 |
| |
2263 |
| - | |
| 2280 | + | |
2264 | 2281 |
| |
2265 | 2282 |
| |
2266 | 2283 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
754 | 754 |
| |
755 | 755 |
| |
756 | 756 |
| |
| 757 | + | |
| 758 | + | |
757 | 759 |
| |
758 | 760 |
| |
759 | 761 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
70 | 70 |
| |
71 | 71 |
| |
72 | 72 |
| |
73 |
| - | |
| 73 | + | |
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
| |||
174 | 174 |
| |
175 | 175 |
| |
176 | 176 |
| |
| 177 | + | |
177 | 178 |
| |
178 | 179 |
| |
179 | 180 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
82 | 82 |
| |
83 | 83 |
| |
84 | 84 |
| |
| 85 | + | |
85 | 86 |
| |
86 | 87 |
| |
87 | 88 |
| |
|
0 commit comments
Comments
(0)