2 F.7. btree_gin — GIN operator classes with B-tree behavior #
7 btree_gin provides GIN operator classes that implement B-tree
8 equivalent behavior for the data types int2, int4, int8, float4,
9 float8, timestamp with time zone, timestamp without time zone, time
10 with time zone, time without time zone, date, interval, oid, money,
11 "char", varchar, text, bytea, bit, varbit, macaddr, macaddr8, inet,
12 cidr, uuid, name, bool, bpchar, and all enum types.
14 In general, these operator classes will not outperform the equivalent
15 standard B-tree index methods, and they lack one major feature of the
16 standard B-tree code: the ability to enforce uniqueness. However, they
17 are useful for GIN testing and as a base for developing other GIN
18 operator classes. Also, for queries that test both a GIN-indexable
19 column and a B-tree-indexable column, it might be more efficient to
20 create a multicolumn GIN index that uses one of these operator classes
21 than to create two separate indexes that would have to be combined via
24 This module is considered “trusted”, that is, it can be installed by
25 non-superusers who have CREATE privilege on the current database.
27 F.7.1. Example Usage #
29 CREATE TABLE test (a int4);
31 CREATE INDEX testidx ON test USING GIN (a);
33 SELECT * FROM test WHERE a < 10;
37 Teodor Sigaev (<teodor@stack.net>) and Oleg Bartunov
38 (<oleg@sai.msu.su>). See
39 http://www.sai.msu.su/~megera/oddmuse/index.cgi/Gin for additional