Generalize hash and ordering support in amapi

Peter Eisentraut <peter@eisentraut.org>

Commit: ce62f2f2a0a48d021f250ba84dfcab5d45ddc914
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2025-02-27T16:03:31Z
Releases: 18.0
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

Documentation touched

Discussion