- Notifications
You must be signed in to change notification settings - Fork5
Commit9220362
committed
Teach SP-GiST to do index-only scans.
Operator classes can specify whether or not they support this; thispreserves the flexibility to use lossy representations within an index.In passing, move constant data about a given index into the rd_amcachecache area, instead of doing fresh lookups each time we start an indexoperation. This is mainly to try to make sure that spgcanreturn() hasinsignificant cost; I still don't have any proof that it matters foractual index accesses. Also, get rid of useless copying of FmgrInfopointers; we can perfectly well use the relcache's versions in-place.1 parent3695a55 commit9220362
File tree
10 files changed
+286
-172
lines changed- doc/src/sgml
- src
- backend/access/spgist
- include/access
- test/regress/expected
10 files changed
+286
-172
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
| 163 | + | |
| 164 | + | |
162 | 165 | | |
163 | 166 | | |
164 | 167 | | |
| |||
441 | 444 | | |
442 | 445 | | |
443 | 446 | | |
| 447 | + | |
444 | 448 | | |
445 | 449 | | |
446 | 450 | | |
| |||
467 | 471 | | |
468 | 472 | | |
469 | 473 | | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
470 | 477 | | |
471 | 478 | | |
472 | 479 | | |
| |||
525 | 532 | | |
526 | 533 | | |
527 | 534 | | |
| 535 | + | |
528 | 536 | | |
529 | 537 | | |
530 | 538 | | |
531 | 539 | | |
532 | 540 | | |
533 | 541 | | |
| 542 | + | |
534 | 543 | | |
535 | 544 | | |
536 | 545 | | |
| |||
543 | 552 | | |
544 | 553 | | |
545 | 554 | | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
546 | 558 | | |
547 | 559 | | |
548 | 560 | | |
549 | 561 | | |
550 | 562 | | |
551 | 563 | | |
552 | 564 | | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
553 | 568 | | |
554 | 569 | | |
555 | 570 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
678 | 679 | | |
679 | 680 | | |
680 | 681 | | |
| 682 | + | |
681 | 683 | | |
682 | 684 | | |
683 | 685 | | |
| |||
816 | 818 | | |
817 | 819 | | |
818 | 820 | | |
819 | | - | |
| 821 | + | |
| 822 | + | |
820 | 823 | | |
821 | 824 | | |
822 | 825 | | |
| |||
1944 | 1947 | | |
1945 | 1948 | | |
1946 | 1949 | | |
| 1950 | + | |
1947 | 1951 | | |
1948 | 1952 | | |
1949 | 1953 | | |
| |||
1968 | 1972 | | |
1969 | 1973 | | |
1970 | 1974 | | |
1971 | | - | |
| 1975 | + | |
| 1976 | + | |
1972 | 1977 | | |
1973 | 1978 | | |
1974 | 1979 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
324 | 325 | | |
325 | 326 | | |
326 | 327 | | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
327 | 331 | | |
328 | 332 | | |
329 | 333 | | |
| |||
0 commit comments
Comments
(0)