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.dil...@enterprisedb.com>
Reviewed-by: Peter Eisentraut <pe...@eisentraut.org>
Discussion: 
https://www.postgresql.org/message-id/flat/e72eaa49-354d-4c2e-8eb9-255197f55...@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(+)

Reply via email to