- Notifications
You must be signed in to change notification settings - Fork5
Commit4f06c68
committed
Put back planner's ability to cache the results of mergejoinscansel(),
which I had removed in the first cut of the EquivalenceClass rewrite tosimplify that patch a little. But it's still important --- in a four-wayjoin problem mergejoinscansel() was eating about 40% of the planning timeaccording to gprof. Also, improve the EquivalenceClass code to re-usejoin RestrictInfos rather than generating fresh ones for each joinconsidered. This saves some memory space but more importantly improvesthe effectiveness of caching planning info in RestrictInfos.1 parent45e0736 commit4f06c68
File tree
9 files changed
+285
-65
lines changed- src
- backend
- nodes
- optimizer
- path
- prep
- util
- utils/adt
- include
- nodes
- utils
9 files changed
+285
-65
lines changedLines changed: 5 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 |
| |
| |||
1326 | 1326 |
| |
1327 | 1327 |
| |
1328 | 1328 |
| |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
1329 | 1333 |
| |
1330 | 1334 |
| |
1331 | 1335 |
| |
|
Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
1304 | 1304 |
| |
1305 | 1305 |
| |
1306 | 1306 |
| |
| 1307 | + | |
1307 | 1308 |
| |
1308 | 1309 |
| |
1309 | 1310 |
| |
| |||
1354 | 1355 |
| |
1355 | 1356 |
| |
1356 | 1357 |
| |
| 1358 | + | |
| 1359 | + | |
1357 | 1360 |
| |
1358 | 1361 |
| |
1359 | 1362 |
| |
|
Lines changed: 62 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
57 |
| - | |
| 57 | + | |
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
| |||
108 | 108 |
| |
109 | 109 |
| |
110 | 110 |
| |
| 111 | + | |
| 112 | + | |
| 113 | + | |
111 | 114 |
| |
112 | 115 |
| |
113 | 116 |
| |
| |||
1349 | 1352 |
| |
1350 | 1353 |
| |
1351 | 1354 |
| |
1352 |
| - | |
1353 |
| - | |
1354 |
| - | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
1355 | 1358 |
| |
1356 | 1359 |
| |
1357 | 1360 |
| |
| |||
1360 | 1363 |
| |
1361 | 1364 |
| |
1362 | 1365 |
| |
1363 |
| - | |
1364 |
| - | |
| 1366 | + | |
1365 | 1367 |
| |
1366 | 1368 |
| |
1367 | 1369 |
| |
| |||
1376 | 1378 |
| |
1377 | 1379 |
| |
1378 | 1380 |
| |
1379 |
| - | |
1380 |
| - | |
1381 |
| - | |
| 1381 | + | |
| 1382 | + | |
1382 | 1383 |
| |
1383 | 1384 |
| |
1384 | 1385 |
| |
1385 | 1386 |
| |
1386 | 1387 |
| |
1387 |
| - | |
1388 |
| - | |
| 1388 | + | |
| 1389 | + | |
1389 | 1390 |
| |
1390 | 1391 |
| |
1391 | 1392 |
| |
1392 | 1393 |
| |
1393 |
| - | |
1394 |
| - | |
| 1394 | + | |
| 1395 | + | |
1395 | 1396 |
| |
1396 | 1397 |
| |
1397 | 1398 |
| |
| |||
1493 | 1494 |
| |
1494 | 1495 |
| |
1495 | 1496 |
| |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
1496 | 1545 |
| |
1497 | 1546 |
| |
1498 | 1547 |
| |
|
0 commit comments
Comments
(0)