1 SET search_path = public;
5 CREATE FUNCTION hstore_in(cstring)
8 LANGUAGE 'C' with (isstrict);
10 CREATE FUNCTION hstore_out(hstore)
13 LANGUAGE 'C' with (isstrict);
22 CREATE FUNCTION fetchval(hstore,text)
25 LANGUAGE 'C' with (isstrict,iscachable);
33 CREATE FUNCTION isexists(hstore,text)
35 AS 'MODULE_PATHNAME','exists'
36 LANGUAGE 'C' with (isstrict,iscachable);
38 CREATE FUNCTION isdefined(hstore,text)
40 AS 'MODULE_PATHNAME','defined'
41 LANGUAGE 'C' with (isstrict,iscachable);
43 CREATE FUNCTION delete(hstore,text)
45 AS 'MODULE_PATHNAME','delete'
46 LANGUAGE 'C' with (isstrict,iscachable);
48 CREATE FUNCTION hs_concat(hstore,hstore)
51 LANGUAGE 'C' with (isstrict,iscachable);
59 CREATE FUNCTION hs_contains(hstore,hstore)
62 LANGUAGE 'C' with (isstrict,iscachable);
67 PROCEDURE = hs_contains,
73 CREATE FUNCTION hs_contained(hstore,hstore)
76 LANGUAGE 'C' with (isstrict,iscachable);
81 PROCEDURE = hs_contained,
87 CREATE FUNCTION tconvert(text,text)
90 LANGUAGE 'C' with (isstrict,iscachable);
98 CREATE FUNCTION akeys(hstore)
101 LANGUAGE 'C' with (isstrict,iscachable);
103 CREATE FUNCTION avals(hstore)
106 LANGUAGE 'C' with (isstrict,iscachable);
108 CREATE FUNCTION skeys(hstore)
111 LANGUAGE 'C' with (isstrict,iscachable);
113 CREATE FUNCTION svals(hstore)
116 LANGUAGE 'C' with (isstrict,iscachable);
118 create type hs_each as (key text, value text);
120 CREATE FUNCTION each(hstore)
121 RETURNS setof hs_each
123 LANGUAGE 'C' with (isstrict,iscachable);
127 -- define the GiST support methods
129 CREATE FUNCTION ghstore_in(cstring)
132 LANGUAGE 'C' with (isstrict);
134 CREATE FUNCTION ghstore_out(ghstore)
137 LANGUAGE 'C' with (isstrict);
139 CREATE TYPE ghstore (
145 CREATE FUNCTION ghstore_compress(internal)
150 CREATE FUNCTION ghstore_decompress(internal)
155 CREATE FUNCTION ghstore_penalty(internal,internal,internal)
158 LANGUAGE 'C' WITH (isstrict);
160 CREATE FUNCTION ghstore_picksplit(internal, internal)
165 CREATE FUNCTION ghstore_union(internal, internal)
170 CREATE FUNCTION ghstore_same(internal, internal, internal)
175 CREATE FUNCTION ghstore_consistent(internal,internal,int4)
180 -- register the opclass for indexing (not as default)
181 CREATE OPERATOR CLASS gist_hstore_ops
182 DEFAULT FOR TYPE hstore USING gist
184 OPERATOR 7 @ RECHECK,
185 --OPERATOR 8 ~ RECHECK,
186 FUNCTION 1 ghstore_consistent (internal, internal, int4),
187 FUNCTION 2 ghstore_union (internal, internal),
188 FUNCTION 3 ghstore_compress (internal),
189 FUNCTION 4 ghstore_decompress (internal),
190 FUNCTION 5 ghstore_penalty (internal, internal, internal),
191 FUNCTION 6 ghstore_picksplit (internal, internal),
192 FUNCTION 7 ghstore_same (internal, internal, internal),