1 /* contrib/btree_gist/btree_gist--1.4--1.5.sql */
3 -- complain if script is sourced in psql, rather than via CREATE EXTENSION
4 \echo Use "ALTER EXTENSION btree_gist UPDATE TO '1.5'" to load this file. \quit
13 -- define the GiST support methods
14 CREATE FUNCTION gbt_enum_consistent(internal,anyenum,int2,oid,internal)
17 LANGUAGE C IMMUTABLE STRICT;
19 CREATE FUNCTION gbt_enum_compress(internal)
22 LANGUAGE C IMMUTABLE STRICT;
24 CREATE FUNCTION gbt_enum_fetch(internal)
27 LANGUAGE C IMMUTABLE STRICT;
29 CREATE FUNCTION gbt_enum_penalty(internal,internal,internal)
32 LANGUAGE C IMMUTABLE STRICT;
34 CREATE FUNCTION gbt_enum_picksplit(internal, internal)
37 LANGUAGE C IMMUTABLE STRICT;
39 CREATE FUNCTION gbt_enum_union(internal, internal)
42 LANGUAGE C IMMUTABLE STRICT;
44 CREATE FUNCTION gbt_enum_same(gbtreekey8, gbtreekey8, internal)
47 LANGUAGE C IMMUTABLE STRICT;
49 -- Create the operator class
50 CREATE OPERATOR CLASS gist_enum_ops
51 DEFAULT FOR TYPE anyenum USING gist
58 FUNCTION 1 gbt_enum_consistent (internal, anyenum, int2, oid, internal),
59 FUNCTION 2 gbt_enum_union (internal, internal),
60 FUNCTION 3 gbt_enum_compress (internal),
61 FUNCTION 4 gbt_decompress (internal),
62 FUNCTION 5 gbt_enum_penalty (internal, internal, internal),
63 FUNCTION 6 gbt_enum_picksplit (internal, internal),
64 FUNCTION 7 gbt_enum_same (gbtreekey8, gbtreekey8, internal),
67 ALTER OPERATOR FAMILY gist_enum_ops USING gist ADD
68 OPERATOR 6 <> (anyenum, anyenum) ,
69 FUNCTION 9 (anyenum, anyenum) gbt_enum_fetch (internal) ;