- Notifications
You must be signed in to change notification settings - Fork5
Commit8a1468a
committed
Restructure planner's handling of inheritance. Rather than processing
inheritance trees on-the-fly, which pretty well constrained us to consideringonly one way of planning inheritance, expand inheritance sets during theplanner prep phase, and build a side data structure that can be consultedlater to find which RTEs are members of which inheritance sets. As proof ofconcept, use the data structure to plan joins against inheritance sets moreefficiently: we can now use indexes on the set members in inner-indexscanjoins. (The generated plans could be improved further, but it'll take someexecutor changes.) This data structure will also support handling UNION ALLsubqueries in the same way as inheritance sets, but that aspect of it isn'tfinished yet.1 parent097df38 commit8a1468a
File tree
18 files changed
+1045
-511
lines changed- src
- backend
- nodes
- optimizer
- path
- plan
- prep
- util
- rewrite
- include
- nodes
- optimizer
18 files changed
+1045
-511
lines changedLines changed: 23 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
| 18 | + | |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| |||
1322 | 1322 |
| |
1323 | 1323 |
| |
1324 | 1324 |
| |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
1325 | 1344 |
| |
1326 | 1345 |
| |
1327 | 1346 |
| |
| |||
2945 | 2964 |
| |
2946 | 2965 |
| |
2947 | 2966 |
| |
| 2967 | + | |
| 2968 | + | |
| 2969 | + | |
2948 | 2970 |
| |
2949 | 2971 |
| |
2950 | 2972 |
| |
|
Lines changed: 18 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 |
| - | |
| 21 | + | |
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
| |||
644 | 644 |
| |
645 | 645 |
| |
646 | 646 |
| |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
647 | 661 |
| |
648 | 662 |
| |
649 | 663 |
| |
| |||
1984 | 1998 |
| |
1985 | 1999 |
| |
1986 | 2000 |
| |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
1987 | 2004 |
| |
1988 | 2005 |
| |
1989 | 2006 |
| |
|
Lines changed: 21 additions & 3 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 |
| |
| |||
1178 | 1178 |
| |
1179 | 1179 |
| |
1180 | 1180 |
| |
| 1181 | + | |
1181 | 1182 |
| |
1182 | 1183 |
| |
1183 | 1184 |
| |
| |||
1204 | 1205 |
| |
1205 | 1206 |
| |
1206 | 1207 |
| |
1207 |
| - | |
1208 |
| - | |
| 1208 | + | |
| 1209 | + | |
1209 | 1210 |
| |
1210 | 1211 |
| |
1211 | 1212 |
| |
| |||
1295 | 1296 |
| |
1296 | 1297 |
| |
1297 | 1298 |
| |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
1298 | 1313 |
| |
1299 | 1314 |
| |
1300 | 1315 |
| |
| |||
2048 | 2063 |
| |
2049 | 2064 |
| |
2050 | 2065 |
| |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
2051 | 2069 |
| |
2052 | 2070 |
| |
2053 | 2071 |
| |
|
0 commit comments
Comments
(0)