pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Convert strategies to and from compare types
Date: Sun, 02 Feb 2025 09:33:23 +0000
Message-ID: <E1teWLz-004ymD-4Y@gemulon.postgresql.org> (raw)

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(+)



Message-ID: <E1teWLz-004ymD-4Y@gemulon.postgresql.org>
Permalink:  ../E1teWLz-004ymD-4Y@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1teWLz-004ymD-4Y@gemulon.postgresql.org

 · 

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: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Convert strategies to and from compare types
  In-Reply-To: <E1teWLz-004ymD-4Y@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox