-
- Downloads
Teach SP-GiST to do index-only scans.
Operator classes can specify whether or not they support this; this preserves the flexibility to use lossy representations within an index. In passing, move constant data about a given index into the rd_amcache cache area, instead of doing fresh lookups each time we start an index operation. This is mainly to try to make sure that spgcanreturn() has insignificant cost; I still don't have any proof that it matters for actual index accesses. Also, get rid of useless copying of FmgrInfo pointers; we can perfectly well use the relcache's versions in-place.
Showing
- doc/src/sgml/spgist.sgml 15 additions, 0 deletionsdoc/src/sgml/spgist.sgml
- src/backend/access/spgist/spgdoinsert.c 7 additions, 2 deletionssrc/backend/access/spgist/spgdoinsert.c
- src/backend/access/spgist/spgkdtreeproc.c 1 addition, 0 deletionssrc/backend/access/spgist/spgkdtreeproc.c
- src/backend/access/spgist/spgquadtreeproc.c 4 additions, 0 deletionssrc/backend/access/spgist/spgquadtreeproc.c
- src/backend/access/spgist/spgscan.c 81 additions, 16 deletionssrc/backend/access/spgist/spgscan.c
- src/backend/access/spgist/spgtextproc.c 11 additions, 2 deletionssrc/backend/access/spgist/spgtextproc.c
- src/backend/access/spgist/spgutils.c 82 additions, 84 deletionssrc/backend/access/spgist/spgutils.c
- src/include/access/spgist.h 4 additions, 0 deletionssrc/include/access/spgist.h
- src/include/access/spgist_private.h 22 additions, 9 deletionssrc/include/access/spgist_private.h
- src/test/regress/expected/create_index.out 59 additions, 59 deletionssrc/test/regress/expected/create_index.out
Loading
Please register or sign in to comment