3 <sect1 id=
"btree-gist">
4 <title>btree_gist
</title>
6 <indexterm zone=
"btree-gist">
7 <primary>btree_gist
</primary>
11 <filename>btree_gist<
/> provides sample GiST operator classes that
12 implement B-Tree equivalent behavior for the data types
13 <type>int2<
/>,
<type>int4<
/>,
<type>int8<
/>,
<type>float4<
/>,
14 <type>float8<
/>,
<type>numeric<
/>,
<type>timestamp with time zone<
/>,
15 <type>timestamp without time zone<
/>,
<type>time with time zone<
/>,
16 <type>time without time zone<
/>,
<type>date<
/>,
<type>interval<
/>,
17 <type>oid<
/>,
<type>money<
/>,
<type>char<
/>,
18 <type>varchar<
/>,
<type>text<
/>,
<type>bytea<
/>,
<type>bit<
/>,
19 <type>varbit<
/>,
<type>macaddr<
/>,
<type>inet<
/>, and
<type>cidr<
/>.
23 In general, these operator classes will not outperform the equivalent
24 standard btree index methods, and they lack one major feature of the
25 standard btree code: the ability to enforce uniqueness. However,
26 they are useful for GiST testing and as a base for developing other
27 GiST operator classes.
31 <title>Example usage
</title>
34 CREATE TABLE test (a int4);
36 CREATE INDEX testidx ON test USING gist (a);
38 SELECT * FROM test WHERE a
< 10;
44 <title>Authors
</title>
47 Teodor Sigaev (
<email>teodor@stack.net
</email>) ,
48 Oleg Bartunov (
<email>oleg@sai.msu.su
</email>), and
49 Janko Richter (
<email>jankorichter@yahoo.de
</email>). See
50 <ulink url=
"http://www.sai.msu.su/~megera/postgres/gist"></ulink>
51 for additional information.