forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd3a4f89
committed
Allow no-op GiST support functions to be omitted.
There are common use-cases in which the compress and/or decompressfunctions can be omitted, with the result being that we make nodata transformation when storing or retrieving index values.Previously, you had to provide a no-op function anyway, but thispatch allows such opclass support functions to be omitted.Furthermore, if the compress function is omitted, then the core codeknows that the stored representation is the same as the original data.This means we can allow index-only scans without requiring a fetchfunction to be provided either. Previously you had to provide ano-op fetch function if you wanted IOS to work.This reportedly provides a small performance benefit in such cases,but IMO the real reason for doing it is just to reduce the amount ofuseless boilerplate code that has to be written for GiST opclasses.Andrey Borodin, reviewed by Dmitriy SarafannikovDiscussion:https://postgr.es/m/CAJEAwVELVx9gYscpE=Be6iJxvdW5unZ_LkcAaVNSeOwvdwtD=A@mail.gmail.com1 parent896537f commitd3a4f89
File tree
5 files changed
+85
-22
lines changed- doc/src/sgml
- src/backend/access/gist
5 files changed
+85
-22
lines changedLines changed: 24 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
267 | 267 |
| |
268 | 268 |
| |
269 | 269 |
| |
270 |
| - | |
271 |
| - | |
| 270 | + | |
| 271 | + | |
272 | 272 |
| |
273 | 273 |
| |
274 | 274 |
| |
275 | 275 |
| |
276 | 276 |
| |
277 |
| - | |
| 277 | + | |
278 | 278 |
| |
279 | 279 |
| |
280 | 280 |
| |
| |||
285 | 285 |
| |
286 | 286 |
| |
287 | 287 |
| |
288 |
| - | |
| 288 | + | |
| 289 | + | |
289 | 290 |
| |
290 | 291 |
| |
291 | 292 |
| |
| |||
468 | 469 |
| |
469 | 470 |
| |
470 | 471 |
| |
471 |
| - | |
| 472 | + | |
472 | 473 |
| |
| 474 | + | |
| 475 | + | |
473 | 476 |
| |
474 | 477 |
| |
475 | 478 |
| |
| |||
527 | 530 |
| |
528 | 531 |
| |
529 | 532 |
| |
530 |
| - | |
531 |
| - | |
532 |
| - | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
533 | 544 |
| |
534 | 545 |
| |
535 | 546 |
| |
| |||
555 | 566 |
| |
556 | 567 |
| |
557 | 568 |
| |
558 |
| - | |
| 569 | + | |
| 570 | + | |
559 | 571 |
| |
560 | 572 |
| |
561 | 573 |
| |
| |||
883 | 895 |
| |
884 | 896 |
| |
885 | 897 |
| |
886 |
| - | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
887 | 901 |
| |
888 | 902 |
| |
889 | 903 |
| |
|
Lines changed: 18 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1453 | 1453 |
| |
1454 | 1454 |
| |
1455 | 1455 |
| |
1456 |
| - | |
1457 |
| - | |
1458 |
| - | |
1459 |
| - | |
1460 |
| - | |
1461 |
| - | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
1462 | 1473 |
| |
1463 | 1474 |
| |
1464 | 1475 |
| |
| |||
1468 | 1479 |
| |
1469 | 1480 |
| |
1470 | 1481 |
| |
| 1482 | + | |
1471 | 1483 |
| |
1472 | 1484 |
| |
1473 | 1485 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
801 | 801 |
| |
802 | 802 |
| |
803 | 803 |
| |
| 804 | + | |
804 | 805 |
| |
805 | 806 |
| |
806 | 807 |
| |
807 | 808 |
| |
808 |
| - | |
| 809 | + | |
| 810 | + | |
809 | 811 |
| |
810 | 812 |
| |
811 | 813 |
| |
|
Lines changed: 38 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
550 | 550 |
| |
551 | 551 |
| |
552 | 552 |
| |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
553 | 558 |
| |
554 | 559 |
| |
555 | 560 |
| |
| |||
585 | 590 |
| |
586 | 591 |
| |
587 | 592 |
| |
588 |
| - | |
589 |
| - | |
590 |
| - | |
591 |
| - | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
592 | 601 |
| |
593 | 602 |
| |
594 | 603 |
| |
| |||
648 | 657 |
| |
649 | 658 |
| |
650 | 659 |
| |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
651 | 671 |
| |
652 | 672 |
| |
653 | 673 |
| |
| |||
934 | 954 |
| |
935 | 955 |
| |
936 | 956 |
| |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
937 | 971 |
| |
938 | 972 |
| |
939 | 973 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
258 | 258 |
| |
259 | 259 |
| |
260 | 260 |
| |
261 |
| - | |
| 261 | + | |
| 262 | + | |
262 | 263 |
| |
263 | 264 |
| |
264 | 265 |
| |
|
0 commit comments
Comments
(0)