pgsql: Convert strategies to and from compare types - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Convert strategies to and from compare types
Date
Msg-id E1teWLz-004ymD-4Y@gemulon.postgresql.org
Whole thread Raw
List 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.dilger@enterprisedb.com>
Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Discussion: https://www.postgresql.org/message-id/flat/E72EAA49-354D-4C2E-8EB9-255197F55330@enterprisedb.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(+)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Move CompareType to separate header file
Next
From: Michael Paquier
Date:
Subject: pgsql: Fix typo in xlog.c