1 /* contrib/btree_gin/btree_gin--1.2--1.3.sql */
3 -- complain if script is sourced in psql, rather than via CREATE EXTENSION
4 \echo Use "ALTER EXTENSION btree_gin UPDATE TO '1.3'" to load this file. \quit
6 -- uuid datatype support new in 1.3.
7 CREATE FUNCTION gin_extract_value_uuid(uuid, internal)
10 LANGUAGE C STRICT IMMUTABLE;
12 CREATE FUNCTION gin_compare_prefix_uuid(uuid, uuid, int2, internal)
15 LANGUAGE C STRICT IMMUTABLE;
17 CREATE FUNCTION gin_extract_query_uuid(uuid, internal, int2, internal, internal)
20 LANGUAGE C STRICT IMMUTABLE;
22 CREATE OPERATOR CLASS uuid_ops
23 DEFAULT FOR TYPE uuid USING gin
30 FUNCTION 1 uuid_cmp(uuid,uuid),
31 FUNCTION 2 gin_extract_value_uuid(uuid, internal),
32 FUNCTION 3 gin_extract_query_uuid(uuid, internal, int2, internal, internal),
33 FUNCTION 4 gin_btree_consistent(internal, int2, anyelement, int4, internal, internal),
34 FUNCTION 5 gin_compare_prefix_uuid(uuid,uuid,int2, internal),
37 -- name datatype support new in 1.3.
38 CREATE FUNCTION gin_extract_value_name(name, internal)
41 LANGUAGE C STRICT IMMUTABLE;
43 CREATE FUNCTION gin_compare_prefix_name(name, name, int2, internal)
46 LANGUAGE C STRICT IMMUTABLE;
48 CREATE FUNCTION gin_extract_query_name(name, internal, int2, internal, internal)
51 LANGUAGE C STRICT IMMUTABLE;
53 CREATE OPERATOR CLASS name_ops
54 DEFAULT FOR TYPE name USING gin
61 FUNCTION 1 btnamecmp(name,name),
62 FUNCTION 2 gin_extract_value_name(name, internal),
63 FUNCTION 3 gin_extract_query_name(name, internal, int2, internal, internal),
64 FUNCTION 4 gin_btree_consistent(internal, int2, anyelement, int4, internal, internal),
65 FUNCTION 5 gin_compare_prefix_name(name,name,int2, internal),
68 -- bool datatype support new in 1.3.
69 CREATE FUNCTION gin_extract_value_bool(bool, internal)
72 LANGUAGE C STRICT IMMUTABLE;
74 CREATE FUNCTION gin_compare_prefix_bool(bool, bool, int2, internal)
77 LANGUAGE C STRICT IMMUTABLE;
79 CREATE FUNCTION gin_extract_query_bool(bool, internal, int2, internal, internal)
82 LANGUAGE C STRICT IMMUTABLE;
84 CREATE OPERATOR CLASS bool_ops
85 DEFAULT FOR TYPE bool USING gin
92 FUNCTION 1 btboolcmp(bool,bool),
93 FUNCTION 2 gin_extract_value_bool(bool, internal),
94 FUNCTION 3 gin_extract_query_bool(bool, internal, int2, internal, internal),
95 FUNCTION 4 gin_btree_consistent(internal, int2, anyelement, int4, internal, internal),
96 FUNCTION 5 gin_compare_prefix_bool(bool,bool,int2, internal),
99 -- bpchar datatype support new in 1.3.
100 CREATE FUNCTION gin_extract_value_bpchar(bpchar, internal)
103 LANGUAGE C STRICT IMMUTABLE;
105 CREATE FUNCTION gin_compare_prefix_bpchar(bpchar, bpchar, int2, internal)
108 LANGUAGE C STRICT IMMUTABLE;
110 CREATE FUNCTION gin_extract_query_bpchar(bpchar, internal, int2, internal, internal)
113 LANGUAGE C STRICT IMMUTABLE;
115 CREATE OPERATOR CLASS bpchar_ops
116 DEFAULT FOR TYPE bpchar USING gin
123 FUNCTION 1 bpcharcmp(bpchar, bpchar),
124 FUNCTION 2 gin_extract_value_bpchar(bpchar, internal),
125 FUNCTION 3 gin_extract_query_bpchar(bpchar, internal, int2, internal, internal),
126 FUNCTION 4 gin_btree_consistent(internal, int2, anyelement, int4, internal, internal),
127 FUNCTION 5 gin_compare_prefix_bpchar(bpchar,bpchar,int2, internal),