pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add cross-type comparisons to contrib/btree_gin.
Date: Thu, 03 Jul 2025 20:30:46 +0000
Message-ID: <E1uXQZy-004ZLl-1t@gemulon.postgresql.org> (raw)

Add cross-type comparisons to contrib/btree_gin.

Extend the infrastructure in btree_gin.c to permit cross-type
operators, and add the code to support them for the int2, int4,
and int8 opclasses.  (To keep this patch digestible, I left
the other datatypes for a separate patch.)  This improves the
usability of btree_gin indexes by allowing them to support the
same set of queries that a regular btree index does.

Author: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Arseniy Mukhin <arseniy.mukhin.dev@gmail.com>
Discussion: https://postgr.es/m/262624.1738460652@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e2b64fcef35f70f96fa92db56fbfa9ac2da136c7

Modified Files
--------------
contrib/btree_gin/Makefile                |   2 +-
contrib/btree_gin/btree_gin--1.3--1.4.sql |  63 ++++
contrib/btree_gin/btree_gin.c             | 479 +++++++++++++++++++++++++-----
contrib/btree_gin/btree_gin.control       |   2 +-
contrib/btree_gin/expected/int2.out       | 190 ++++++++++++
contrib/btree_gin/expected/int4.out       | 100 +++++++
contrib/btree_gin/expected/int8.out       | 100 +++++++
contrib/btree_gin/meson.build             |   1 +
contrib/btree_gin/sql/int2.sql            |  35 +++
contrib/btree_gin/sql/int4.sql            |  18 ++
contrib/btree_gin/sql/int8.sql            |  18 ++
doc/src/sgml/gin.sgml                     |   6 +-
src/tools/pgindent/typedefs.list          |   2 +
13 files changed, 931 insertions(+), 85 deletions(-)



Message-ID: <E1uXQZy-004ZLl-1t@gemulon.postgresql.org>
Permalink:  ../E1uXQZy-004ZLl-1t@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1uXQZy-004ZLl-1t@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: tgl@sss.pgh.pa.us, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add cross-type comparisons to contrib/btree_gin.
  In-Reply-To: <E1uXQZy-004ZLl-1t@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