forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6543d81
committed
Restructure handling of inheritance queries so that they work with outer
joins, and clean things up a good deal at the same time. Append plan nodeno longer hacks on rangetable at runtime --- instead, all child tables aregiven their own RT entries during planning. Concept of multiple targettables pushed up into execMain, replacing bug-prone implementation withinnodeAppend. Planner now supports generating Append plans for inheritancesets either at the top of the plan (the old way) or at the bottom. Expandingat the bottom is appropriate for tables used as sources, since they mayappear inside an outer join; but we must still expand at the top when thetarget of an UPDATE or DELETE is an inheritance set, because we actually needa different targetlist and junkfilter for each target table in that case.Fortunately a target table can't be inside an outer join... Bizarre mutualrecursion between union_planner and prepunion.c is gone --- in fact,union_planner doesn't really have much to do with union queries anymore,so I renamed it grouping_planner.1 parent609f919 commit6543d81
File tree
37 files changed
+1247
-1242
lines changed- src
- backend
- commands
- executor
- nodes
- optimizer
- path
- plan
- prep
- util
- parser
- tcop
- include
- catalog
- executor
- nodes
- optimizer
37 files changed
+1247
-1242
lines changedLines changed: 4 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
1098 | 1098 |
| |
1099 | 1099 |
| |
1100 | 1100 |
| |
1101 |
| - | |
| 1101 | + | |
1102 | 1102 |
| |
1103 | 1103 |
| |
1104 | 1104 |
| |
1105 | 1105 |
| |
1106 | 1106 |
| |
1107 |
| - | |
1108 | 1107 |
| |
1109 | 1108 |
| |
1110 | 1109 |
| |
1111 | 1110 |
| |
1112 | 1111 |
| |
1113 | 1112 |
| |
1114 | 1113 |
| |
1115 |
| - | |
| 1114 | + | |
1116 | 1115 |
| |
1117 |
| - | |
| 1116 | + | |
1118 | 1117 |
| |
1119 | 1118 |
| |
1120 | 1119 |
| |
| |||
1169 | 1168 |
| |
1170 | 1169 |
| |
1171 | 1170 |
| |
1172 |
| - | |
1173 |
| - | |
1174 |
| - | |
1175 |
| - | |
1176 |
| - | |
1177 |
| - | |
1178 |
| - | |
1179 | 1171 |
| |
1180 | 1172 |
| |
1181 | 1173 |
| |
| |||
1188 | 1180 |
| |
1189 | 1181 |
| |
1190 | 1182 |
| |
1191 |
| - | |
1192 | 1183 |
| |
1193 | 1184 |
| |
1194 |
| - | |
1195 | 1185 |
| |
1196 | 1186 |
| |
1197 | 1187 |
| |
| |||
1201 | 1191 |
| |
1202 | 1192 |
| |
1203 | 1193 |
| |
1204 |
| - | |
1205 |
| - | |
1206 | 1194 |
| |
1207 | 1195 |
| |
1208 | 1196 |
| |
|
Lines changed: 13 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
597 | 597 |
| |
598 | 598 |
| |
599 | 599 |
| |
600 |
| - | |
| 600 | + | |
601 | 601 |
| |
602 | 602 |
| |
603 | 603 |
| |
| |||
609 | 609 |
| |
610 | 610 |
| |
611 | 611 |
| |
612 |
| - | |
| 612 | + | |
613 | 613 |
| |
614 | 614 |
| |
615 | 615 |
| |
616 |
| - | |
617 |
| - | |
618 |
| - | |
619 |
| - | |
620 |
| - | |
621 |
| - | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
622 | 619 |
| |
623 |
| - | |
| 620 | + | |
624 | 621 |
| |
625 |
| - | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
626 | 625 |
| |
627 | 626 |
| |
628 | 627 |
| |
| |||
830 | 829 |
| |
831 | 830 |
| |
832 | 831 |
| |
833 |
| - | |
| 832 | + | |
834 | 833 |
| |
835 | 834 |
| |
836 | 835 |
| |
837 | 836 |
| |
838 | 837 |
| |
839 | 838 |
| |
840 | 839 |
| |
841 |
| - | |
| 840 | + | |
842 | 841 |
| |
843 | 842 |
| |
844 | 843 |
| |
| |||
886 | 885 |
| |
887 | 886 |
| |
888 | 887 |
| |
889 |
| - | |
| 888 | + | |
890 | 889 |
| |
891 | 890 |
| |
892 | 891 |
| |
|
Lines changed: 1 addition & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
| 8 | + | |
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
| |||
327 | 327 |
| |
328 | 328 |
| |
329 | 329 |
| |
330 |
| - | |
331 |
| - | |
332 | 330 |
| |
333 | 331 |
| |
334 | 332 |
| |
335 | 333 |
| |
336 | 334 |
| |
337 | 335 |
| |
338 |
| - | |
339 |
| - | |
340 |
| - | |
341 |
| - | |
342 |
| - | |
343 |
| - | |
344 |
| - | |
345 |
| - | |
346 |
| - | |
347 | 336 |
| |
348 | 337 |
| |
349 | 338 |
| |
350 | 339 |
| |
351 | 340 |
| |
352 |
| - | |
353 |
| - | |
354 | 341 |
| |
355 |
| - | |
356 | 342 |
| |
357 | 343 |
| |
358 | 344 |
| |
|
0 commit comments
Comments
(0)