From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Convert strategies to and from compare types |
Date: | 2025-02-02 09:33:23 |
Message-ID: | E1teWLz-004ymD-4Y@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Convert strategies to and from compare types
For each Index AM, provide a mapping between operator strategies and
the system-wide generic concept of a comparison type. For example,
for btree, BTLessStrategyNumber maps to and from COMPARE_LT. Numerous
places in the planner and executor think directly in terms of btree
strategy numbers (and a few in terms of hash strategy numbers.) These
should be converted over subsequent commits to think in terms of
CompareType instead. (This commit doesn't make any use of this API
yet.)
Author: Mark Dilger <mark(dot)dilger(at)enterprisedb(dot)com>
Reviewed-by: Peter Eisentraut <peter(at)eisentraut(dot)org>
Discussion: https://www.postgresql.org/message-id/flat/E72EAA49-354D-4C2E-8EB9-255197F55330(at)enterprisedb(dot)com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/c09e5a6a01659a66dd84f3e745694999d3414ddd
Modified Files
--------------
contrib/bloom/blutils.c | 2 ++
doc/src/sgml/indexam.sgml | 26 +++++++++++++++++++
src/backend/access/brin/brin.c | 2 ++
src/backend/access/gist/gist.c | 2 ++
src/backend/access/hash/hash.c | 19 ++++++++++++++
src/backend/access/index/amapi.c | 50 ++++++++++++++++++++++++++++++++++++
src/backend/access/nbtree/nbtree.c | 43 +++++++++++++++++++++++++++++++
src/backend/access/spgist/spgutils.c | 2 ++
src/include/access/amapi.h | 14 ++++++++++
src/include/access/cmptype.h | 1 +
src/include/access/hash.h | 3 +++
src/include/access/nbtree.h | 3 +++
src/tools/pgindent/typedefs.list | 2 ++
13 files changed, 169 insertions(+)
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2025-02-03 00:26:01 | pgsql: Fix typo in xlog.c |
Previous Message | Peter Eisentraut | 2025-02-02 07:17:54 | pgsql: Move CompareType to separate header file |