forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc2ea228
committed
Simplify API for initially hooking custom-path providers into the planner.
Instead of register_custom_path_provider and a CreateCustomScanPathcallback, let's just provide a standard function hook in set_rel_pathlist.This is more flexible than what was previously committed, is more like theusual conventions for planner hooks, and requires less support code in thecore. We had discussed this design (including centralizing theset_cheapest() calls) back in March or so, so I'm not sure why it wasn'tdone like this already.1 parent4077fb4 commitc2ea228
File tree
5 files changed
+27
-88
lines changed- src
- backend/optimizer
- path
- util
- include
- nodes
- optimizer
5 files changed
+27
-88
lines changedLines changed: 20 additions & 28 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
| 57 | + | |
| 58 | + | |
| 59 | + | |
57 | 60 |
| |
58 | 61 |
| |
59 | 62 |
| |
| |||
355 | 358 |
| |
356 | 359 |
| |
357 | 360 |
| |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
358 | 372 |
| |
359 | 373 |
| |
360 | 374 |
| |
| |||
401 | 415 |
| |
402 | 416 |
| |
403 | 417 |
| |
404 |
| - | |
405 |
| - | |
406 |
| - | |
407 |
| - | |
408 |
| - | |
409 |
| - | |
410 | 418 |
| |
411 | 419 |
| |
412 | 420 |
| |
| |||
432 | 440 |
| |
433 | 441 |
| |
434 | 442 |
| |
435 |
| - | |
436 |
| - | |
437 |
| - | |
438 | 443 |
| |
439 | 444 |
| |
440 | 445 |
| |
| |||
857 | 862 |
| |
858 | 863 |
| |
859 | 864 |
| |
860 |
| - | |
861 |
| - | |
862 |
| - | |
863 | 865 |
| |
864 | 866 |
| |
865 | 867 |
| |
| |||
1087 | 1089 |
| |
1088 | 1090 |
| |
1089 | 1091 |
| |
1090 |
| - | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
1091 | 1098 |
| |
1092 | 1099 |
| |
1093 | 1100 |
| |
| |||
1275 | 1282 |
| |
1276 | 1283 |
| |
1277 | 1284 |
| |
1278 |
| - | |
1279 |
| - | |
1280 |
| - | |
1281 | 1285 |
| |
1282 | 1286 |
| |
1283 | 1287 |
| |
| |||
1346 | 1350 |
| |
1347 | 1351 |
| |
1348 | 1352 |
| |
1349 |
| - | |
1350 |
| - | |
1351 |
| - | |
1352 | 1353 |
| |
1353 | 1354 |
| |
1354 | 1355 |
| |
| |||
1369 | 1370 |
| |
1370 | 1371 |
| |
1371 | 1372 |
| |
1372 |
| - | |
1373 |
| - | |
1374 |
| - | |
1375 | 1373 |
| |
1376 | 1374 |
| |
1377 | 1375 |
| |
| |||
1438 | 1436 |
| |
1439 | 1437 |
| |
1440 | 1438 |
| |
1441 |
| - | |
1442 |
| - | |
1443 |
| - | |
1444 | 1439 |
| |
1445 | 1440 |
| |
1446 | 1441 |
| |
| |||
1491 | 1486 |
| |
1492 | 1487 |
| |
1493 | 1488 |
| |
1494 |
| - | |
1495 |
| - | |
1496 |
| - | |
1497 | 1489 |
| |
1498 | 1490 |
| |
1499 | 1491 |
| |
|
Lines changed: 0 additions & 48 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
30 |
| - | |
31 | 30 |
| |
32 | 31 |
| |
33 | 32 |
| |
| |||
1927 | 1926 |
| |
1928 | 1927 |
| |
1929 | 1928 |
| |
1930 |
| - | |
1931 |
| - | |
1932 |
| - | |
1933 |
| - | |
1934 |
| - | |
1935 |
| - | |
1936 |
| - | |
1937 |
| - | |
1938 |
| - | |
1939 |
| - | |
1940 |
| - | |
1941 |
| - | |
1942 |
| - | |
1943 |
| - | |
1944 |
| - | |
1945 |
| - | |
1946 |
| - | |
1947 |
| - | |
1948 |
| - | |
1949 |
| - | |
1950 |
| - | |
1951 |
| - | |
1952 |
| - | |
1953 |
| - | |
1954 |
| - | |
1955 |
| - | |
1956 |
| - | |
1957 |
| - | |
1958 |
| - | |
1959 |
| - | |
1960 |
| - | |
1961 |
| - | |
1962 |
| - | |
1963 |
| - | |
1964 |
| - | |
1965 |
| - | |
1966 |
| - | |
1967 |
| - | |
1968 |
| - | |
1969 |
| - | |
1970 |
| - | |
1971 |
| - | |
1972 |
| - | |
1973 |
| - | |
1974 |
| - | |
1975 |
| - | |
1976 |
| - |
Lines changed: 0 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
906 | 906 |
| |
907 | 907 |
| |
908 | 908 |
| |
909 |
| - | |
910 |
| - | |
911 |
| - | |
912 | 909 |
| |
913 | 910 |
| |
914 | 911 |
| |
|
Lines changed: 0 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
128 | 128 |
| |
129 | 129 |
| |
130 | 130 |
| |
131 |
| - | |
132 |
| - | |
133 |
| - | |
134 |
| - | |
135 |
| - | |
136 |
| - | |
137 |
| - | |
138 |
| - | |
139 |
| - | |
140 | 131 |
| |
141 | 132 |
| |
142 | 133 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
26 | 33 |
| |
27 | 34 |
| |
28 | 35 |
| |
|
0 commit comments
Comments
(0)