3 -- Adjust this setting to control where the objects get created.
4 SET search_path
= public;
6 CREATE OR REPLACE FUNCTION gbtreekey4_in(cstring
)
8 AS 'MODULE_PATHNAME', 'gbtreekey_in'
9 LANGUAGE C
IMMUTABLE STRICT;
11 CREATE OR REPLACE FUNCTION gbtreekey4_out(gbtreekey4
)
13 AS 'MODULE_PATHNAME', 'gbtreekey_out'
14 LANGUAGE C
IMMUTABLE STRICT;
16 CREATE TYPE gbtreekey4 (
18 INPUT = gbtreekey4_in
,
19 OUTPUT = gbtreekey4_out
22 CREATE OR REPLACE FUNCTION gbtreekey8_in(cstring
)
24 AS 'MODULE_PATHNAME', 'gbtreekey_in'
25 LANGUAGE C
IMMUTABLE STRICT;
27 CREATE OR REPLACE FUNCTION gbtreekey8_out(gbtreekey8
)
29 AS 'MODULE_PATHNAME', 'gbtreekey_out'
30 LANGUAGE C
IMMUTABLE STRICT;
32 CREATE TYPE gbtreekey8 (
34 INPUT = gbtreekey8_in
,
35 OUTPUT = gbtreekey8_out
38 CREATE OR REPLACE FUNCTION gbtreekey16_in(cstring
)
40 AS 'MODULE_PATHNAME', 'gbtreekey_in'
41 LANGUAGE C
IMMUTABLE STRICT;
43 CREATE OR REPLACE FUNCTION gbtreekey16_out(gbtreekey16
)
45 AS 'MODULE_PATHNAME', 'gbtreekey_out'
46 LANGUAGE C
IMMUTABLE STRICT;
48 CREATE TYPE gbtreekey16 (
50 INPUT = gbtreekey16_in
,
51 OUTPUT = gbtreekey16_out
54 CREATE OR REPLACE FUNCTION gbtreekey32_in(cstring
)
56 AS 'MODULE_PATHNAME', 'gbtreekey_in'
57 LANGUAGE C
IMMUTABLE STRICT;
59 CREATE OR REPLACE FUNCTION gbtreekey32_out(gbtreekey32
)
61 AS 'MODULE_PATHNAME', 'gbtreekey_out'
62 LANGUAGE C
IMMUTABLE STRICT;
64 CREATE TYPE gbtreekey32 (
66 INPUT = gbtreekey32_in
,
67 OUTPUT = gbtreekey32_out
70 CREATE OR REPLACE FUNCTION gbtreekey_var_in(cstring
)
72 AS 'MODULE_PATHNAME', 'gbtreekey_in'
73 LANGUAGE C
IMMUTABLE STRICT;
75 CREATE OR REPLACE FUNCTION gbtreekey_var_out(gbtreekey_var
)
77 AS 'MODULE_PATHNAME', 'gbtreekey_out'
78 LANGUAGE C
IMMUTABLE STRICT;
80 CREATE TYPE gbtreekey_var (
81 INTERNALLENGTH
= VARIABLE,
82 INPUT = gbtreekey_var_in
,
83 OUTPUT = gbtreekey_var_out
,
96 -- define the GiST support methods
97 CREATE OR REPLACE FUNCTION gbt_oid_consistent(internal
,oid
,int2
,oid
,internal
)
100 LANGUAGE C
IMMUTABLE;
102 CREATE OR REPLACE FUNCTION gbt_oid_compress(internal
)
105 LANGUAGE C
IMMUTABLE;
107 CREATE OR REPLACE FUNCTION gbt_decompress(internal
)
110 LANGUAGE C
IMMUTABLE;
112 CREATE OR REPLACE FUNCTION gbt_var_decompress(internal
)
115 LANGUAGE C
IMMUTABLE;
117 CREATE OR REPLACE FUNCTION gbt_oid_penalty(internal
,internal
,internal
)
120 LANGUAGE C
IMMUTABLE STRICT;
122 CREATE OR REPLACE FUNCTION gbt_oid_picksplit(internal
, internal
)
125 LANGUAGE C
IMMUTABLE;
127 CREATE OR REPLACE FUNCTION gbt_oid_union(bytea
, internal
)
130 LANGUAGE C
IMMUTABLE;
132 CREATE OR REPLACE FUNCTION gbt_oid_same(internal
, internal
, internal
)
135 LANGUAGE C
IMMUTABLE;
137 -- Create the operator class
138 CREATE OPERATOR CLASS gist_oid_ops
139 DEFAULT FOR TYPE oid
USING gist
146 FUNCTION 1 gbt_oid_consistent (internal
, oid
, int2
, oid
, internal
),
147 FUNCTION 2 gbt_oid_union (bytea
, internal
),
148 FUNCTION 3 gbt_oid_compress (internal
),
149 FUNCTION 4 gbt_decompress (internal
),
150 FUNCTION 5 gbt_oid_penalty (internal
, internal
, internal
),
151 FUNCTION 6 gbt_oid_picksplit (internal
, internal
),
152 FUNCTION 7 gbt_oid_same (internal
, internal
, internal
),
163 -- define the GiST support methods
164 CREATE OR REPLACE FUNCTION gbt_int2_consistent(internal
,int2
,int2
,oid
,internal
)
167 LANGUAGE C
IMMUTABLE;
169 CREATE OR REPLACE FUNCTION gbt_int2_compress(internal
)
172 LANGUAGE C
IMMUTABLE;
174 CREATE OR REPLACE FUNCTION gbt_int2_penalty(internal
,internal
,internal
)
177 LANGUAGE C
IMMUTABLE STRICT;
179 CREATE OR REPLACE FUNCTION gbt_int2_picksplit(internal
, internal
)
182 LANGUAGE C
IMMUTABLE;
184 CREATE OR REPLACE FUNCTION gbt_int2_union(bytea
, internal
)
187 LANGUAGE C
IMMUTABLE;
189 CREATE OR REPLACE FUNCTION gbt_int2_same(internal
, internal
, internal
)
192 LANGUAGE C
IMMUTABLE;
194 -- Create the operator class
195 CREATE OPERATOR CLASS gist_int2_ops
196 DEFAULT FOR TYPE int2
USING gist
203 FUNCTION 1 gbt_int2_consistent (internal
, int2
, int2
, oid
, internal
),
204 FUNCTION 2 gbt_int2_union (bytea
, internal
),
205 FUNCTION 3 gbt_int2_compress (internal
),
206 FUNCTION 4 gbt_decompress (internal
),
207 FUNCTION 5 gbt_int2_penalty (internal
, internal
, internal
),
208 FUNCTION 6 gbt_int2_picksplit (internal
, internal
),
209 FUNCTION 7 gbt_int2_same (internal
, internal
, internal
),
219 -- define the GiST support methods
220 CREATE OR REPLACE FUNCTION gbt_int4_consistent(internal
,int4
,int2
,oid
,internal
)
223 LANGUAGE C
IMMUTABLE;
225 CREATE OR REPLACE FUNCTION gbt_int4_compress(internal
)
228 LANGUAGE C
IMMUTABLE;
230 CREATE OR REPLACE FUNCTION gbt_int4_penalty(internal
,internal
,internal
)
233 LANGUAGE C
IMMUTABLE STRICT;
235 CREATE OR REPLACE FUNCTION gbt_int4_picksplit(internal
, internal
)
238 LANGUAGE C
IMMUTABLE;
240 CREATE OR REPLACE FUNCTION gbt_int4_union(bytea
, internal
)
243 LANGUAGE C
IMMUTABLE;
245 CREATE OR REPLACE FUNCTION gbt_int4_same(internal
, internal
, internal
)
248 LANGUAGE C
IMMUTABLE;
250 -- Create the operator class
251 CREATE OPERATOR CLASS gist_int4_ops
252 DEFAULT FOR TYPE int4
USING gist
259 FUNCTION 1 gbt_int4_consistent (internal
, int4
, int2
, oid
, internal
),
260 FUNCTION 2 gbt_int4_union (bytea
, internal
),
261 FUNCTION 3 gbt_int4_compress (internal
),
262 FUNCTION 4 gbt_decompress (internal
),
263 FUNCTION 5 gbt_int4_penalty (internal
, internal
, internal
),
264 FUNCTION 6 gbt_int4_picksplit (internal
, internal
),
265 FUNCTION 7 gbt_int4_same (internal
, internal
, internal
),
275 -- define the GiST support methods
276 CREATE OR REPLACE FUNCTION gbt_int8_consistent(internal
,int8
,int2
,oid
,internal
)
279 LANGUAGE C
IMMUTABLE;
281 CREATE OR REPLACE FUNCTION gbt_int8_compress(internal
)
284 LANGUAGE C
IMMUTABLE;
286 CREATE OR REPLACE FUNCTION gbt_int8_penalty(internal
,internal
,internal
)
289 LANGUAGE C
IMMUTABLE STRICT;
291 CREATE OR REPLACE FUNCTION gbt_int8_picksplit(internal
, internal
)
294 LANGUAGE C
IMMUTABLE;
296 CREATE OR REPLACE FUNCTION gbt_int8_union(bytea
, internal
)
299 LANGUAGE C
IMMUTABLE;
301 CREATE OR REPLACE FUNCTION gbt_int8_same(internal
, internal
, internal
)
304 LANGUAGE C
IMMUTABLE;
306 -- Create the operator class
307 CREATE OPERATOR CLASS gist_int8_ops
308 DEFAULT FOR TYPE int8
USING gist
315 FUNCTION 1 gbt_int8_consistent (internal
, int8
, int2
, oid
, internal
),
316 FUNCTION 2 gbt_int8_union (bytea
, internal
),
317 FUNCTION 3 gbt_int8_compress (internal
),
318 FUNCTION 4 gbt_decompress (internal
),
319 FUNCTION 5 gbt_int8_penalty (internal
, internal
, internal
),
320 FUNCTION 6 gbt_int8_picksplit (internal
, internal
),
321 FUNCTION 7 gbt_int8_same (internal
, internal
, internal
),
332 -- define the GiST support methods
333 CREATE OR REPLACE FUNCTION gbt_float4_consistent(internal
,float4
,int2
,oid
,internal
)
336 LANGUAGE C
IMMUTABLE;
338 CREATE OR REPLACE FUNCTION gbt_float4_compress(internal
)
341 LANGUAGE C
IMMUTABLE;
343 CREATE OR REPLACE FUNCTION gbt_float4_penalty(internal
,internal
,internal
)
346 LANGUAGE C
IMMUTABLE STRICT;
348 CREATE OR REPLACE FUNCTION gbt_float4_picksplit(internal
, internal
)
351 LANGUAGE C
IMMUTABLE;
353 CREATE OR REPLACE FUNCTION gbt_float4_union(bytea
, internal
)
356 LANGUAGE C
IMMUTABLE;
358 CREATE OR REPLACE FUNCTION gbt_float4_same(internal
, internal
, internal
)
361 LANGUAGE C
IMMUTABLE;
363 -- Create the operator class
364 CREATE OPERATOR CLASS gist_float4_ops
365 DEFAULT FOR TYPE float4
USING gist
372 FUNCTION 1 gbt_float4_consistent (internal
, float4
, int2
, oid
, internal
),
373 FUNCTION 2 gbt_float4_union (bytea
, internal
),
374 FUNCTION 3 gbt_float4_compress (internal
),
375 FUNCTION 4 gbt_decompress (internal
),
376 FUNCTION 5 gbt_float4_penalty (internal
, internal
, internal
),
377 FUNCTION 6 gbt_float4_picksplit (internal
, internal
),
378 FUNCTION 7 gbt_float4_same (internal
, internal
, internal
),
391 -- define the GiST support methods
392 CREATE OR REPLACE FUNCTION gbt_float8_consistent(internal
,float8
,int2
,oid
,internal
)
395 LANGUAGE C
IMMUTABLE;
397 CREATE OR REPLACE FUNCTION gbt_float8_compress(internal
)
400 LANGUAGE C
IMMUTABLE;
402 CREATE OR REPLACE FUNCTION gbt_float8_penalty(internal
,internal
,internal
)
405 LANGUAGE C
IMMUTABLE STRICT;
407 CREATE OR REPLACE FUNCTION gbt_float8_picksplit(internal
, internal
)
410 LANGUAGE C
IMMUTABLE;
412 CREATE OR REPLACE FUNCTION gbt_float8_union(bytea
, internal
)
415 LANGUAGE C
IMMUTABLE;
417 CREATE OR REPLACE FUNCTION gbt_float8_same(internal
, internal
, internal
)
420 LANGUAGE C
IMMUTABLE;
422 -- Create the operator class
423 CREATE OPERATOR CLASS gist_float8_ops
424 DEFAULT FOR TYPE float8
USING gist
431 FUNCTION 1 gbt_float8_consistent (internal
, float8
, int2
, oid
, internal
),
432 FUNCTION 2 gbt_float8_union (bytea
, internal
),
433 FUNCTION 3 gbt_float8_compress (internal
),
434 FUNCTION 4 gbt_decompress (internal
),
435 FUNCTION 5 gbt_float8_penalty (internal
, internal
, internal
),
436 FUNCTION 6 gbt_float8_picksplit (internal
, internal
),
437 FUNCTION 7 gbt_float8_same (internal
, internal
, internal
),
449 CREATE OR REPLACE FUNCTION gbt_ts_consistent(internal
,timestamp,int2
,oid
,internal
)
452 LANGUAGE C
IMMUTABLE;
454 CREATE OR REPLACE FUNCTION gbt_tstz_consistent(internal
,timestamptz
,int2
,oid
,internal
)
457 LANGUAGE C
IMMUTABLE;
459 CREATE OR REPLACE FUNCTION gbt_ts_compress(internal
)
462 LANGUAGE C
IMMUTABLE;
464 CREATE OR REPLACE FUNCTION gbt_tstz_compress(internal
)
467 LANGUAGE C
IMMUTABLE;
469 CREATE OR REPLACE FUNCTION gbt_ts_penalty(internal
,internal
,internal
)
472 LANGUAGE C
IMMUTABLE STRICT;
474 CREATE OR REPLACE FUNCTION gbt_ts_picksplit(internal
, internal
)
477 LANGUAGE C
IMMUTABLE;
479 CREATE OR REPLACE FUNCTION gbt_ts_union(bytea
, internal
)
482 LANGUAGE C
IMMUTABLE;
484 CREATE OR REPLACE FUNCTION gbt_ts_same(internal
, internal
, internal
)
487 LANGUAGE C
IMMUTABLE;
489 -- Create the operator class
490 CREATE OPERATOR CLASS gist_timestamp_ops
491 DEFAULT FOR TYPE timestamp USING gist
498 FUNCTION 1 gbt_ts_consistent (internal
, timestamp, int2
, oid
, internal
),
499 FUNCTION 2 gbt_ts_union (bytea
, internal
),
500 FUNCTION 3 gbt_ts_compress (internal
),
501 FUNCTION 4 gbt_decompress (internal
),
502 FUNCTION 5 gbt_ts_penalty (internal
, internal
, internal
),
503 FUNCTION 6 gbt_ts_picksplit (internal
, internal
),
504 FUNCTION 7 gbt_ts_same (internal
, internal
, internal
),
508 -- Create the operator class
509 CREATE OPERATOR CLASS gist_timestamptz_ops
510 DEFAULT FOR TYPE timestamptz
USING gist
517 FUNCTION 1 gbt_tstz_consistent (internal
, timestamptz
, int2
, oid
, internal
),
518 FUNCTION 2 gbt_ts_union (bytea
, internal
),
519 FUNCTION 3 gbt_tstz_compress (internal
),
520 FUNCTION 4 gbt_decompress (internal
),
521 FUNCTION 5 gbt_ts_penalty (internal
, internal
, internal
),
522 FUNCTION 6 gbt_ts_picksplit (internal
, internal
),
523 FUNCTION 7 gbt_ts_same (internal
, internal
, internal
),
535 CREATE OR REPLACE FUNCTION gbt_time_consistent(internal
,time,int2
,oid
,internal
)
538 LANGUAGE C
IMMUTABLE;
540 CREATE OR REPLACE FUNCTION gbt_timetz_consistent(internal
,timetz
,int2
,oid
,internal
)
543 LANGUAGE C
IMMUTABLE;
545 CREATE OR REPLACE FUNCTION gbt_time_compress(internal
)
548 LANGUAGE C
IMMUTABLE;
550 CREATE OR REPLACE FUNCTION gbt_timetz_compress(internal
)
553 LANGUAGE C
IMMUTABLE;
555 CREATE OR REPLACE FUNCTION gbt_time_penalty(internal
,internal
,internal
)
558 LANGUAGE C
IMMUTABLE STRICT;
560 CREATE OR REPLACE FUNCTION gbt_time_picksplit(internal
, internal
)
563 LANGUAGE C
IMMUTABLE;
565 CREATE OR REPLACE FUNCTION gbt_time_union(bytea
, internal
)
568 LANGUAGE C
IMMUTABLE;
570 CREATE OR REPLACE FUNCTION gbt_time_same(internal
, internal
, internal
)
573 LANGUAGE C
IMMUTABLE;
575 -- Create the operator class
576 CREATE OPERATOR CLASS gist_time_ops
577 DEFAULT FOR TYPE time USING gist
584 FUNCTION 1 gbt_time_consistent (internal
, time, int2
, oid
, internal
),
585 FUNCTION 2 gbt_time_union (bytea
, internal
),
586 FUNCTION 3 gbt_time_compress (internal
),
587 FUNCTION 4 gbt_decompress (internal
),
588 FUNCTION 5 gbt_time_penalty (internal
, internal
, internal
),
589 FUNCTION 6 gbt_time_picksplit (internal
, internal
),
590 FUNCTION 7 gbt_time_same (internal
, internal
, internal
),
593 CREATE OPERATOR CLASS gist_timetz_ops
594 DEFAULT FOR TYPE timetz
USING gist
601 FUNCTION 1 gbt_timetz_consistent (internal
, timetz
, int2
, oid
, internal
),
602 FUNCTION 2 gbt_time_union (bytea
, internal
),
603 FUNCTION 3 gbt_timetz_compress (internal
),
604 FUNCTION 4 gbt_decompress (internal
),
605 FUNCTION 5 gbt_time_penalty (internal
, internal
, internal
),
606 FUNCTION 6 gbt_time_picksplit (internal
, internal
),
607 FUNCTION 7 gbt_time_same (internal
, internal
, internal
),
619 CREATE OR REPLACE FUNCTION gbt_date_consistent(internal
,date,int2
,oid
,internal
)
622 LANGUAGE C
IMMUTABLE;
624 CREATE OR REPLACE FUNCTION gbt_date_compress(internal
)
627 LANGUAGE C
IMMUTABLE;
629 CREATE OR REPLACE FUNCTION gbt_date_penalty(internal
,internal
,internal
)
632 LANGUAGE C
IMMUTABLE STRICT;
634 CREATE OR REPLACE FUNCTION gbt_date_picksplit(internal
, internal
)
637 LANGUAGE C
IMMUTABLE;
639 CREATE OR REPLACE FUNCTION gbt_date_union(bytea
, internal
)
642 LANGUAGE C
IMMUTABLE;
644 CREATE OR REPLACE FUNCTION gbt_date_same(internal
, internal
, internal
)
647 LANGUAGE C
IMMUTABLE;
649 -- Create the operator class
650 CREATE OPERATOR CLASS gist_date_ops
651 DEFAULT FOR TYPE date USING gist
658 FUNCTION 1 gbt_date_consistent (internal
, date, int2
, oid
, internal
),
659 FUNCTION 2 gbt_date_union (bytea
, internal
),
660 FUNCTION 3 gbt_date_compress (internal
),
661 FUNCTION 4 gbt_decompress (internal
),
662 FUNCTION 5 gbt_date_penalty (internal
, internal
, internal
),
663 FUNCTION 6 gbt_date_picksplit (internal
, internal
),
664 FUNCTION 7 gbt_date_same (internal
, internal
, internal
),
676 CREATE OR REPLACE FUNCTION gbt_intv_consistent(internal
,interval,int2
,oid
,internal
)
679 LANGUAGE C
IMMUTABLE;
681 CREATE OR REPLACE FUNCTION gbt_intv_compress(internal
)
684 LANGUAGE C
IMMUTABLE;
686 CREATE OR REPLACE FUNCTION gbt_intv_decompress(internal
)
689 LANGUAGE C
IMMUTABLE;
691 CREATE OR REPLACE FUNCTION gbt_intv_penalty(internal
,internal
,internal
)
694 LANGUAGE C
IMMUTABLE STRICT;
696 CREATE OR REPLACE FUNCTION gbt_intv_picksplit(internal
, internal
)
699 LANGUAGE C
IMMUTABLE;
701 CREATE OR REPLACE FUNCTION gbt_intv_union(bytea
, internal
)
704 LANGUAGE C
IMMUTABLE;
706 CREATE OR REPLACE FUNCTION gbt_intv_same(internal
, internal
, internal
)
709 LANGUAGE C
IMMUTABLE;
711 -- Create the operator class
712 CREATE OPERATOR CLASS gist_interval_ops
713 DEFAULT FOR TYPE interval USING gist
720 FUNCTION 1 gbt_intv_consistent (internal
, interval, int2
, oid
, internal
),
721 FUNCTION 2 gbt_intv_union (bytea
, internal
),
722 FUNCTION 3 gbt_intv_compress (internal
),
723 FUNCTION 4 gbt_intv_decompress (internal
),
724 FUNCTION 5 gbt_intv_penalty (internal
, internal
, internal
),
725 FUNCTION 6 gbt_intv_picksplit (internal
, internal
),
726 FUNCTION 7 gbt_intv_same (internal
, internal
, internal
),
736 -- define the GiST support methods
737 CREATE OR REPLACE FUNCTION gbt_cash_consistent(internal
,money
,int2
,oid
,internal
)
740 LANGUAGE C
IMMUTABLE;
742 CREATE OR REPLACE FUNCTION gbt_cash_compress(internal
)
745 LANGUAGE C
IMMUTABLE;
747 CREATE OR REPLACE FUNCTION gbt_cash_penalty(internal
,internal
,internal
)
750 LANGUAGE C
IMMUTABLE STRICT;
752 CREATE OR REPLACE FUNCTION gbt_cash_picksplit(internal
, internal
)
755 LANGUAGE C
IMMUTABLE;
757 CREATE OR REPLACE FUNCTION gbt_cash_union(bytea
, internal
)
760 LANGUAGE C
IMMUTABLE;
762 CREATE OR REPLACE FUNCTION gbt_cash_same(internal
, internal
, internal
)
765 LANGUAGE C
IMMUTABLE;
767 -- Create the operator class
768 CREATE OPERATOR CLASS gist_cash_ops
769 DEFAULT FOR TYPE money
USING gist
776 FUNCTION 1 gbt_cash_consistent (internal
, money
, int2
, oid
, internal
),
777 FUNCTION 2 gbt_cash_union (bytea
, internal
),
778 FUNCTION 3 gbt_cash_compress (internal
),
779 FUNCTION 4 gbt_decompress (internal
),
780 FUNCTION 5 gbt_cash_penalty (internal
, internal
, internal
),
781 FUNCTION 6 gbt_cash_picksplit (internal
, internal
),
782 FUNCTION 7 gbt_cash_same (internal
, internal
, internal
),
792 -- define the GiST support methods
793 CREATE OR REPLACE FUNCTION gbt_macad_consistent(internal
,macaddr
,int2
,oid
,internal
)
796 LANGUAGE C
IMMUTABLE;
798 CREATE OR REPLACE FUNCTION gbt_macad_compress(internal
)
801 LANGUAGE C
IMMUTABLE;
803 CREATE OR REPLACE FUNCTION gbt_macad_penalty(internal
,internal
,internal
)
806 LANGUAGE C
IMMUTABLE STRICT;
808 CREATE OR REPLACE FUNCTION gbt_macad_picksplit(internal
, internal
)
811 LANGUAGE C
IMMUTABLE;
813 CREATE OR REPLACE FUNCTION gbt_macad_union(bytea
, internal
)
816 LANGUAGE C
IMMUTABLE;
818 CREATE OR REPLACE FUNCTION gbt_macad_same(internal
, internal
, internal
)
821 LANGUAGE C
IMMUTABLE;
823 -- Create the operator class
824 CREATE OPERATOR CLASS gist_macaddr_ops
825 DEFAULT FOR TYPE macaddr
USING gist
832 FUNCTION 1 gbt_macad_consistent (internal
, macaddr
, int2
, oid
, internal
),
833 FUNCTION 2 gbt_macad_union (bytea
, internal
),
834 FUNCTION 3 gbt_macad_compress (internal
),
835 FUNCTION 4 gbt_decompress (internal
),
836 FUNCTION 5 gbt_macad_penalty (internal
, internal
, internal
),
837 FUNCTION 6 gbt_macad_picksplit (internal
, internal
),
838 FUNCTION 7 gbt_macad_same (internal
, internal
, internal
),
850 -- define the GiST support methods
851 CREATE OR REPLACE FUNCTION gbt_text_consistent(internal
,text,int2
,oid
,internal
)
854 LANGUAGE C
IMMUTABLE;
856 CREATE OR REPLACE FUNCTION gbt_bpchar_consistent(internal
,bpchar
,int2
,oid
,internal
)
859 LANGUAGE C
IMMUTABLE;
861 CREATE OR REPLACE FUNCTION gbt_text_compress(internal
)
864 LANGUAGE C
IMMUTABLE;
866 CREATE OR REPLACE FUNCTION gbt_bpchar_compress(internal
)
869 LANGUAGE C
IMMUTABLE;
871 CREATE OR REPLACE FUNCTION gbt_text_penalty(internal
,internal
,internal
)
874 LANGUAGE C
IMMUTABLE STRICT;
876 CREATE OR REPLACE FUNCTION gbt_text_picksplit(internal
, internal
)
879 LANGUAGE C
IMMUTABLE;
881 CREATE OR REPLACE FUNCTION gbt_text_union(bytea
, internal
)
882 RETURNS gbtreekey_var
884 LANGUAGE C
IMMUTABLE;
886 CREATE OR REPLACE FUNCTION gbt_text_same(internal
, internal
, internal
)
889 LANGUAGE C
IMMUTABLE;
891 -- Create the operator class
892 CREATE OPERATOR CLASS gist_text_ops
893 DEFAULT FOR TYPE text USING gist
900 FUNCTION 1 gbt_text_consistent (internal
, text, int2
, oid
, internal
),
901 FUNCTION 2 gbt_text_union (bytea
, internal
),
902 FUNCTION 3 gbt_text_compress (internal
),
903 FUNCTION 4 gbt_var_decompress (internal
),
904 FUNCTION 5 gbt_text_penalty (internal
, internal
, internal
),
905 FUNCTION 6 gbt_text_picksplit (internal
, internal
),
906 FUNCTION 7 gbt_text_same (internal
, internal
, internal
),
907 STORAGE gbtreekey_var
;
910 ---- Create the operator class
911 CREATE OPERATOR CLASS gist_bpchar_ops
912 DEFAULT FOR TYPE bpchar
USING gist
919 FUNCTION 1 gbt_bpchar_consistent (internal
, bpchar
, int2
, oid
, internal
),
920 FUNCTION 2 gbt_text_union (bytea
, internal
),
921 FUNCTION 3 gbt_bpchar_compress (internal
),
922 FUNCTION 4 gbt_var_decompress (internal
),
923 FUNCTION 5 gbt_text_penalty (internal
, internal
, internal
),
924 FUNCTION 6 gbt_text_picksplit (internal
, internal
),
925 FUNCTION 7 gbt_text_same (internal
, internal
, internal
),
926 STORAGE gbtreekey_var
;
936 -- define the GiST support methods
937 CREATE OR REPLACE FUNCTION gbt_bytea_consistent(internal
,bytea
,int2
,oid
,internal
)
940 LANGUAGE C
IMMUTABLE;
942 CREATE OR REPLACE FUNCTION gbt_bytea_compress(internal
)
945 LANGUAGE C
IMMUTABLE;
947 CREATE OR REPLACE FUNCTION gbt_bytea_penalty(internal
,internal
,internal
)
950 LANGUAGE C
IMMUTABLE STRICT;
952 CREATE OR REPLACE FUNCTION gbt_bytea_picksplit(internal
, internal
)
955 LANGUAGE C
IMMUTABLE;
957 CREATE OR REPLACE FUNCTION gbt_bytea_union(bytea
, internal
)
958 RETURNS gbtreekey_var
960 LANGUAGE C
IMMUTABLE;
962 CREATE OR REPLACE FUNCTION gbt_bytea_same(internal
, internal
, internal
)
965 LANGUAGE C
IMMUTABLE;
967 -- Create the operator class
968 CREATE OPERATOR CLASS gist_bytea_ops
969 DEFAULT FOR TYPE bytea
USING gist
976 FUNCTION 1 gbt_bytea_consistent (internal
, bytea
, int2
, oid
, internal
),
977 FUNCTION 2 gbt_bytea_union (bytea
, internal
),
978 FUNCTION 3 gbt_bytea_compress (internal
),
979 FUNCTION 4 gbt_var_decompress (internal
),
980 FUNCTION 5 gbt_bytea_penalty (internal
, internal
, internal
),
981 FUNCTION 6 gbt_bytea_picksplit (internal
, internal
),
982 FUNCTION 7 gbt_bytea_same (internal
, internal
, internal
),
983 STORAGE gbtreekey_var
;
993 -- define the GiST support methods
994 CREATE OR REPLACE FUNCTION gbt_numeric_consistent(internal
,numeric,int2
,oid
,internal
)
997 LANGUAGE C
IMMUTABLE;
999 CREATE OR REPLACE FUNCTION gbt_numeric_compress(internal
)
1001 AS 'MODULE_PATHNAME'
1002 LANGUAGE C
IMMUTABLE;
1004 CREATE OR REPLACE FUNCTION gbt_numeric_penalty(internal
,internal
,internal
)
1006 AS 'MODULE_PATHNAME'
1007 LANGUAGE C
IMMUTABLE STRICT;
1009 CREATE OR REPLACE FUNCTION gbt_numeric_picksplit(internal
, internal
)
1011 AS 'MODULE_PATHNAME'
1012 LANGUAGE C
IMMUTABLE;
1014 CREATE OR REPLACE FUNCTION gbt_numeric_union(bytea
, internal
)
1015 RETURNS gbtreekey_var
1016 AS 'MODULE_PATHNAME'
1017 LANGUAGE C
IMMUTABLE;
1019 CREATE OR REPLACE FUNCTION gbt_numeric_same(internal
, internal
, internal
)
1021 AS 'MODULE_PATHNAME'
1022 LANGUAGE C
IMMUTABLE;
1024 -- Create the operator class
1025 CREATE OPERATOR CLASS gist_numeric_ops
1026 DEFAULT FOR TYPE numeric USING gist
1033 FUNCTION 1 gbt_numeric_consistent (internal
, numeric, int2
, oid
, internal
),
1034 FUNCTION 2 gbt_numeric_union (bytea
, internal
),
1035 FUNCTION 3 gbt_numeric_compress (internal
),
1036 FUNCTION 4 gbt_var_decompress (internal
),
1037 FUNCTION 5 gbt_numeric_penalty (internal
, internal
, internal
),
1038 FUNCTION 6 gbt_numeric_picksplit (internal
, internal
),
1039 FUNCTION 7 gbt_numeric_same (internal
, internal
, internal
),
1040 STORAGE gbtreekey_var
;
1048 -- define the GiST support methods
1049 CREATE OR REPLACE FUNCTION gbt_bit_consistent(internal
,bit,int2
,oid
,internal
)
1051 AS 'MODULE_PATHNAME'
1052 LANGUAGE C
IMMUTABLE;
1054 CREATE OR REPLACE FUNCTION gbt_bit_compress(internal
)
1056 AS 'MODULE_PATHNAME'
1057 LANGUAGE C
IMMUTABLE;
1059 CREATE OR REPLACE FUNCTION gbt_bit_penalty(internal
,internal
,internal
)
1061 AS 'MODULE_PATHNAME'
1062 LANGUAGE C
IMMUTABLE STRICT;
1064 CREATE OR REPLACE FUNCTION gbt_bit_picksplit(internal
, internal
)
1066 AS 'MODULE_PATHNAME'
1067 LANGUAGE C
IMMUTABLE;
1069 CREATE OR REPLACE FUNCTION gbt_bit_union(bytea
, internal
)
1070 RETURNS gbtreekey_var
1071 AS 'MODULE_PATHNAME'
1072 LANGUAGE C
IMMUTABLE;
1074 CREATE OR REPLACE FUNCTION gbt_bit_same(internal
, internal
, internal
)
1076 AS 'MODULE_PATHNAME'
1077 LANGUAGE C
IMMUTABLE;
1079 -- Create the operator class
1080 CREATE OPERATOR CLASS gist_bit_ops
1081 DEFAULT FOR TYPE bit USING gist
1088 FUNCTION 1 gbt_bit_consistent (internal
, bit, int2
, oid
, internal
),
1089 FUNCTION 2 gbt_bit_union (bytea
, internal
),
1090 FUNCTION 3 gbt_bit_compress (internal
),
1091 FUNCTION 4 gbt_var_decompress (internal
),
1092 FUNCTION 5 gbt_bit_penalty (internal
, internal
, internal
),
1093 FUNCTION 6 gbt_bit_picksplit (internal
, internal
),
1094 FUNCTION 7 gbt_bit_same (internal
, internal
, internal
),
1095 STORAGE gbtreekey_var
;
1098 -- Create the operator class
1099 CREATE OPERATOR CLASS gist_vbit_ops
1100 DEFAULT FOR TYPE varbit
USING gist
1107 FUNCTION 1 gbt_bit_consistent (internal
, bit, int2
, oid
, internal
),
1108 FUNCTION 2 gbt_bit_union (bytea
, internal
),
1109 FUNCTION 3 gbt_bit_compress (internal
),
1110 FUNCTION 4 gbt_var_decompress (internal
),
1111 FUNCTION 5 gbt_bit_penalty (internal
, internal
, internal
),
1112 FUNCTION 6 gbt_bit_picksplit (internal
, internal
),
1113 FUNCTION 7 gbt_bit_same (internal
, internal
, internal
),
1114 STORAGE gbtreekey_var
;
1125 -- define the GiST support methods
1126 CREATE OR REPLACE FUNCTION gbt_inet_consistent(internal
,inet
,int2
,oid
,internal
)
1128 AS 'MODULE_PATHNAME'
1129 LANGUAGE C
IMMUTABLE;
1131 CREATE OR REPLACE FUNCTION gbt_inet_compress(internal
)
1133 AS 'MODULE_PATHNAME'
1134 LANGUAGE C
IMMUTABLE;
1136 CREATE OR REPLACE FUNCTION gbt_inet_penalty(internal
,internal
,internal
)
1138 AS 'MODULE_PATHNAME'
1139 LANGUAGE C
IMMUTABLE STRICT;
1141 CREATE OR REPLACE FUNCTION gbt_inet_picksplit(internal
, internal
)
1143 AS 'MODULE_PATHNAME'
1144 LANGUAGE C
IMMUTABLE;
1146 CREATE OR REPLACE FUNCTION gbt_inet_union(bytea
, internal
)
1148 AS 'MODULE_PATHNAME'
1149 LANGUAGE C
IMMUTABLE;
1151 CREATE OR REPLACE FUNCTION gbt_inet_same(internal
, internal
, internal
)
1153 AS 'MODULE_PATHNAME'
1154 LANGUAGE C
IMMUTABLE;
1156 -- Create the operator class
1157 CREATE OPERATOR CLASS gist_inet_ops
1158 DEFAULT FOR TYPE inet
USING gist
1165 FUNCTION 1 gbt_inet_consistent (internal
, inet
, int2
, oid
, internal
),
1166 FUNCTION 2 gbt_inet_union (bytea
, internal
),
1167 FUNCTION 3 gbt_inet_compress (internal
),
1168 FUNCTION 4 gbt_decompress (internal
),
1169 FUNCTION 5 gbt_inet_penalty (internal
, internal
, internal
),
1170 FUNCTION 6 gbt_inet_picksplit (internal
, internal
),
1171 FUNCTION 7 gbt_inet_same (internal
, internal
, internal
),
1172 STORAGE gbtreekey16
;
1174 -- Create the operator class
1175 CREATE OPERATOR CLASS gist_cidr_ops
1176 DEFAULT FOR TYPE cidr
USING gist
1178 OPERATOR 1 < (inet
, inet
) ,
1179 OPERATOR 2 <= (inet
, inet
) ,
1180 OPERATOR 3 = (inet
, inet
) ,
1181 OPERATOR 4 >= (inet
, inet
) ,
1182 OPERATOR 5 > (inet
, inet
) ,
1183 FUNCTION 1 gbt_inet_consistent (internal
, inet
, int2
, oid
, internal
),
1184 FUNCTION 2 gbt_inet_union (bytea
, internal
),
1185 FUNCTION 3 gbt_inet_compress (internal
),
1186 FUNCTION 4 gbt_decompress (internal
),
1187 FUNCTION 5 gbt_inet_penalty (internal
, internal
, internal
),
1188 FUNCTION 6 gbt_inet_picksplit (internal
, internal
),
1189 FUNCTION 7 gbt_inet_same (internal
, internal
, internal
),
1190 STORAGE gbtreekey16
;