Generalize hash and ordering support in amapi
Peter Eisentraut <peter@eisentraut.org>
Generalize hash and ordering support in amapi Stop comparing access method OID values against HASH_AM_OID and BTREE_AM_OID, and instead check the IndexAmRoutine for an index to see if it advertises its ability to perform the necessary ordering, hashing, or cross-type comparing functionality. A field amcanorder already existed, this uses it more widely. Fields amcanhash and amcancrosscompare are added for the other purposes. Author: Mark Dilger <mark.dilger@enterprisedb.com> Discussion: https://www.postgresql.org/message-id/flat/E72EAA49-354D-4C2E-8EB9-255197F55330@enterprisedb.com
Files
| Path | Change | +/− |
|---|---|---|
| contrib/bloom/blutils.c | modified | +2 −0 |
| doc/src/sgml/indexam.sgml | modified | +4 −0 |
| src/backend/access/brin/brin.c | modified | +2 −0 |
| src/backend/access/gin/ginutil.c | modified | +2 −0 |
| src/backend/access/gist/gist.c | modified | +2 −0 |
| src/backend/access/hash/hash.c | modified | +2 −0 |
| src/backend/access/nbtree/nbtree.c | modified | +2 −0 |
| src/backend/access/spgist/spgutils.c | modified | +2 −0 |
| src/backend/commands/opclasscmds.c | modified | +17 −17 |
| src/backend/executor/nodeIndexscan.c | modified | +2 −2 |
| src/backend/utils/cache/lsyscache.c | modified | +4 −4 |
| src/include/access/amapi.h | modified | +4 −0 |
| src/test/modules/dummy_index_am/dummy_index_am.c | modified | +2 −0 |
| src/test/regress/expected/alter_generic.out | modified | +3 −3 |
Documentation touched
Discussion
- Index AM API cleanup 48 messages · 2024-08-21 → 2025-04-04