pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add bool GiST opclass to btree_gist
Date: Sat, 06 Nov 2021 16:07:00 +0000
Message-ID: <E1mjODc-0000DH-HX@gemulon.postgresql.org> (raw)

Add bool GiST opclass to btree_gist

Adds bool opclass to btree_gist extension, to allow creating GiST
indexes on bool columns. GiST indexes on a single bool column don't seem
particularly useful, but this allows defining exclusion constraings
involving a bool column, for example.

Author: Emre Hasegeli
Reviewed-by: Andrey Borodin
Discussion: https://postgr.es/m/CAE2gYzyDKJBZngssR84VGZEN=Ux=V9FV23QfPgo+7-yYnKKg4g@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/57e3c5160b24e61758f817feb7aac152cd695c6f

Modified Files
--------------
contrib/btree_gist/Makefile                 |   5 +-
contrib/btree_gist/btree_bool.c             | 169 ++++++++++++++++++++++++++++
contrib/btree_gist/btree_gist--1.6--1.7.sql |  62 ++++++++++
contrib/btree_gist/btree_gist.control       |   2 +-
contrib/btree_gist/btree_gist.h             |   1 +
contrib/btree_gist/btree_utils_num.c        |   8 ++
contrib/btree_gist/expected/bool.out        |  96 ++++++++++++++++
contrib/btree_gist/sql/bool.sql             |  42 +++++++
8 files changed, 382 insertions(+), 3 deletions(-)



Message-ID: <E1mjODc-0000DH-HX@gemulon.postgresql.org>
Permalink:  ../E1mjODc-0000DH-HX@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1mjODc-0000DH-HX@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tomas.vondra@postgresql.org
  Subject: Re: pgsql: Add bool GiST opclass to btree_gist
  In-Reply-To: <E1mjODc-0000DH-HX@gemulon.postgresql.org>
  References: <E1mjODc-0000DH-HX@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