Add GiST and btree sortsupport routines for range types
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Add GiST and btree sortsupport routines for range types For GiST, having a sortsupport function allows building the index using the "sorted build" method, which is much faster. For b-tree, the sortsupport routine doesn't give any new functionality, but speeds up sorting a tiny bit. The difference is not very significant, about 2% in cursory testing on my laptop, because the range type comparison function has quite a lot of overhead from detoasting. In any case, since we have the function for GiST anyway, we might as well register it for the btree opfamily too. Author: Bernd Helmle <mailings@oopsware.de> Discussion: https://www.postgresql.org/message-id/64d324ce2a6d535d3f0f3baeeea7b25beff82ce4.camel@oopsware.de
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/rangetypes.c | modified | +64 −0 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/catalog/pg_amproc.dat | modified | +6 −0 |
| src/include/catalog/pg_proc.dat | modified | +3 −0 |
Discussion
- [PATCH] Add sortsupport for range types and btree_gist 46 messages · 2022-06-15 → 2025-04-03