Add bool GiST opclass to btree_gist
authorTomas Vondra <tomas.vondra@postgresql.org>
Sat, 6 Nov 2021 16:00:43 +0000 (17:00 +0100)
committerTomas Vondra <tomas.vondra@postgresql.org>
Sat, 6 Nov 2021 16:00:43 +0000 (17:00 +0100)
commit57e3c5160b24e61758f817feb7aac152cd695c6f
treeaf80841b8c3eab2e46d003bcbc573b62557e4644
parentdafcf887daa472b0a49bee7e07042372bc37cee4
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
contrib/btree_gist/Makefile
contrib/btree_gist/btree_bool.c [new file with mode: 0644]
contrib/btree_gist/btree_gist--1.6--1.7.sql [new file with mode: 0644]
contrib/btree_gist/btree_gist.control
contrib/btree_gist/btree_gist.h
contrib/btree_gist/btree_utils_num.c
contrib/btree_gist/expected/bool.out [new file with mode: 0644]
contrib/btree_gist/sql/bool.sql [new file with mode: 0644]