public inbox for [email protected]
help / color / mirror / Atom feedFrom: Peter Eisentraut <[email protected]>
To: [email protected]
Subject: pgsql: Generalize hash and ordering support in amapi
Date: Thu, 27 Feb 2025 16:15:46 +0000
Message-ID: <[email protected]> (raw)
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]
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/ce62f2f2a0a48d021f250ba84dfcab5d45ddc914
Modified Files
--------------
contrib/bloom/blutils.c | 2 ++
doc/src/sgml/indexam.sgml | 4 +++
src/backend/access/brin/brin.c | 2 ++
src/backend/access/gin/ginutil.c | 2 ++
src/backend/access/gist/gist.c | 2 ++
src/backend/access/hash/hash.c | 2 ++
src/backend/access/nbtree/nbtree.c | 2 ++
src/backend/access/spgist/spgutils.c | 2 ++
src/backend/commands/opclasscmds.c | 34 ++++++++++++------------
src/backend/executor/nodeIndexscan.c | 4 +--
src/backend/utils/cache/lsyscache.c | 8 +++---
src/include/access/amapi.h | 4 +++
src/test/modules/dummy_index_am/dummy_index_am.c | 2 ++
src/test/regress/expected/alter_generic.out | 6 ++---
14 files changed, 50 insertions(+), 26 deletions(-)
view thread (10+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: pgsql: Generalize hash and ordering support in amapi
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox