Add btree_gist support for enum types.
authorAndrew Dunstan <andrew@dunslane.net>
Tue, 21 Mar 2017 14:19:03 +0000 (10:19 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Tue, 21 Mar 2017 14:43:27 +0000 (10:43 -0400)
commitf7946a92b689199cba64e7406a1c12d12637168a
tree2f41255ef1200e06a7a707e8a57e5841af6daa36
parent65a9138b9b66b2c915619344ca56f4f0d531ada7
Add btree_gist support for enum types.

This will allow enums to be used in exclusion constraints.

The code uses the new CallerFInfoFunctionCall infrastructure in fmgr,
and the support for it added to btree_gist in commit 393bb504d7.

Reviewed by Tom Lane and Anastasia Lubennikova

Discussion:  http://postgr.es/m/56EA8A71.8060107@dunslane.net
contrib/btree_gist/Makefile
contrib/btree_gist/btree_enum.c [new file with mode: 0644]
contrib/btree_gist/btree_gist--1.4--1.5.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/data/enum.data [new file with mode: 0644]
contrib/btree_gist/expected/enum.out [new file with mode: 0644]
contrib/btree_gist/sql/enum.sql [new file with mode: 0644]
doc/src/sgml/btree-gist.sgml