diff options
| author | Peter Eisentraut | 2025-02-27 16:03:31 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2025-02-27 16:03:31 +0000 |
| commit | ce62f2f2a0a48d021f250ba84dfcab5d45ddc914 (patch) | |
| tree | dd73a4a521f961961ce8c991363b3425e9e4741d /contrib | |
| parent | 6eb8a1a4f90c542d7ce9dcc381528fcb81390ab9 (diff) | |
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 <[email protected]>
Discussion: https://www.postgresql.org/message-id/flat/[email protected]
Diffstat (limited to 'contrib')
| -rw-r--r-- | contrib/bloom/blutils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/bloom/blutils.c b/contrib/bloom/blutils.c index 04b61042a57..c901e942720 100644 --- a/contrib/bloom/blutils.c +++ b/contrib/bloom/blutils.c @@ -109,6 +109,8 @@ blhandler(PG_FUNCTION_ARGS) amroutine->amoptsprocnum = BLOOM_OPTIONS_PROC; amroutine->amcanorder = false; amroutine->amcanorderbyop = false; + amroutine->amcanhash = false; + amroutine->amcancrosscompare = false; amroutine->amcanbackward = false; amroutine->amcanunique = false; amroutine->amcanmulticol = true; |
