1 /* contrib/btree_gist/btree_gist--1.2.sql */
3 -- complain if script is sourced in psql, rather than via CREATE EXTENSION
4 \echo Use "CREATE EXTENSION btree_gist" to load this file. \quit
6 CREATE FUNCTION gbtreekey4_in(cstring)
8 AS 'MODULE_PATHNAME', 'gbtreekey_in'
9 LANGUAGE C IMMUTABLE STRICT;
11 CREATE 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 FUNCTION gbtreekey8_in(cstring)
24 AS 'MODULE_PATHNAME', 'gbtreekey_in'
25 LANGUAGE C IMMUTABLE STRICT;
27 CREATE 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 FUNCTION gbtreekey16_in(cstring)
40 AS 'MODULE_PATHNAME', 'gbtreekey_in'
41 LANGUAGE C IMMUTABLE STRICT;
43 CREATE 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 FUNCTION gbtreekey32_in(cstring)
56 AS 'MODULE_PATHNAME', 'gbtreekey_in'
57 LANGUAGE C IMMUTABLE STRICT;
59 CREATE 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 FUNCTION gbtreekey_var_in(cstring)
72 AS 'MODULE_PATHNAME', 'gbtreekey_in'
73 LANGUAGE C IMMUTABLE STRICT;
75 CREATE 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,
89 CREATE FUNCTION cash_dist(money, money)
92 LANGUAGE C IMMUTABLE STRICT;
97 PROCEDURE = cash_dist,
101 CREATE FUNCTION date_dist(date, date)
104 LANGUAGE C IMMUTABLE STRICT;
106 CREATE OPERATOR <-> (
109 PROCEDURE = date_dist,
113 CREATE FUNCTION float4_dist(float4, float4)
116 LANGUAGE C IMMUTABLE STRICT;
118 CREATE OPERATOR <-> (
121 PROCEDURE = float4_dist,
125 CREATE FUNCTION float8_dist(float8, float8)
128 LANGUAGE C IMMUTABLE STRICT;
130 CREATE OPERATOR <-> (
133 PROCEDURE = float8_dist,
137 CREATE FUNCTION int2_dist(int2, int2)
140 LANGUAGE C IMMUTABLE STRICT;
142 CREATE OPERATOR <-> (
145 PROCEDURE = int2_dist,
149 CREATE FUNCTION int4_dist(int4, int4)
152 LANGUAGE C IMMUTABLE STRICT;
154 CREATE OPERATOR <-> (
157 PROCEDURE = int4_dist,
161 CREATE FUNCTION int8_dist(int8, int8)
164 LANGUAGE C IMMUTABLE STRICT;
166 CREATE OPERATOR <-> (
169 PROCEDURE = int8_dist,
173 CREATE FUNCTION interval_dist(interval, interval)
176 LANGUAGE C IMMUTABLE STRICT;
178 CREATE OPERATOR <-> (
181 PROCEDURE = interval_dist,
185 CREATE FUNCTION oid_dist(oid, oid)
188 LANGUAGE C IMMUTABLE STRICT;
190 CREATE OPERATOR <-> (
193 PROCEDURE = oid_dist,
197 CREATE FUNCTION time_dist(time, time)
200 LANGUAGE C IMMUTABLE STRICT;
202 CREATE OPERATOR <-> (
205 PROCEDURE = time_dist,
209 CREATE FUNCTION ts_dist(timestamp, timestamp)
212 LANGUAGE C IMMUTABLE STRICT;
214 CREATE OPERATOR <-> (
216 RIGHTARG = timestamp,
221 CREATE FUNCTION tstz_dist(timestamptz, timestamptz)
224 LANGUAGE C IMMUTABLE STRICT;
226 CREATE OPERATOR <-> (
227 LEFTARG = timestamptz,
228 RIGHTARG = timestamptz,
229 PROCEDURE = tstz_dist,
241 -- define the GiST support methods
242 CREATE FUNCTION gbt_oid_consistent(internal,oid,int2,oid,internal)
245 LANGUAGE C IMMUTABLE STRICT;
247 CREATE FUNCTION gbt_oid_distance(internal,oid,int2,oid,internal)
250 LANGUAGE C IMMUTABLE STRICT;
252 CREATE FUNCTION gbt_oid_fetch(internal)
255 LANGUAGE C IMMUTABLE STRICT;
257 CREATE FUNCTION gbt_oid_compress(internal)
260 LANGUAGE C IMMUTABLE STRICT;
262 CREATE FUNCTION gbt_decompress(internal)
265 LANGUAGE C IMMUTABLE STRICT;
267 CREATE FUNCTION gbt_var_decompress(internal)
270 LANGUAGE C IMMUTABLE STRICT;
272 CREATE FUNCTION gbt_var_fetch(internal)
275 LANGUAGE C IMMUTABLE STRICT;
277 CREATE FUNCTION gbt_oid_penalty(internal,internal,internal)
280 LANGUAGE C IMMUTABLE STRICT;
282 CREATE FUNCTION gbt_oid_picksplit(internal, internal)
285 LANGUAGE C IMMUTABLE STRICT;
287 CREATE FUNCTION gbt_oid_union(internal, internal)
290 LANGUAGE C IMMUTABLE STRICT;
292 CREATE FUNCTION gbt_oid_same(gbtreekey8, gbtreekey8, internal)
295 LANGUAGE C IMMUTABLE STRICT;
297 -- Create the operator class
298 CREATE OPERATOR CLASS gist_oid_ops
299 DEFAULT FOR TYPE oid USING gist
306 FUNCTION 1 gbt_oid_consistent (internal, oid, int2, oid, internal),
307 FUNCTION 2 gbt_oid_union (internal, internal),
308 FUNCTION 3 gbt_oid_compress (internal),
309 FUNCTION 4 gbt_decompress (internal),
310 FUNCTION 5 gbt_oid_penalty (internal, internal, internal),
311 FUNCTION 6 gbt_oid_picksplit (internal, internal),
312 FUNCTION 7 gbt_oid_same (gbtreekey8, gbtreekey8, internal),
315 -- Add operators that are new in 9.1. We do it like this, leaving them
316 -- "loose" in the operator family rather than bound into the opclass, because
317 -- that's the only state that can be reproduced during an upgrade from 9.0.
318 ALTER OPERATOR FAMILY gist_oid_ops USING gist ADD
319 OPERATOR 6 <> (oid, oid) ,
320 OPERATOR 15 <-> (oid, oid) FOR ORDER BY pg_catalog.oid_ops ,
321 FUNCTION 8 (oid, oid) gbt_oid_distance (internal, oid, int2, oid, internal) ,
322 -- Also add support function for index-only-scans, added in 9.5.
323 FUNCTION 9 (oid, oid) gbt_oid_fetch (internal) ;
333 -- define the GiST support methods
334 CREATE FUNCTION gbt_int2_consistent(internal,int2,int2,oid,internal)
337 LANGUAGE C IMMUTABLE STRICT;
339 CREATE FUNCTION gbt_int2_distance(internal,int2,int2,oid,internal)
342 LANGUAGE C IMMUTABLE STRICT;
344 CREATE FUNCTION gbt_int2_compress(internal)
347 LANGUAGE C IMMUTABLE STRICT;
349 CREATE FUNCTION gbt_int2_fetch(internal)
352 LANGUAGE C IMMUTABLE STRICT;
354 CREATE FUNCTION gbt_int2_penalty(internal,internal,internal)
357 LANGUAGE C IMMUTABLE STRICT;
359 CREATE FUNCTION gbt_int2_picksplit(internal, internal)
362 LANGUAGE C IMMUTABLE STRICT;
364 CREATE FUNCTION gbt_int2_union(internal, internal)
367 LANGUAGE C IMMUTABLE STRICT;
369 CREATE FUNCTION gbt_int2_same(gbtreekey4, gbtreekey4, internal)
372 LANGUAGE C IMMUTABLE STRICT;
374 -- Create the operator class
375 CREATE OPERATOR CLASS gist_int2_ops
376 DEFAULT FOR TYPE int2 USING gist
383 FUNCTION 1 gbt_int2_consistent (internal, int2, int2, oid, internal),
384 FUNCTION 2 gbt_int2_union (internal, internal),
385 FUNCTION 3 gbt_int2_compress (internal),
386 FUNCTION 4 gbt_decompress (internal),
387 FUNCTION 5 gbt_int2_penalty (internal, internal, internal),
388 FUNCTION 6 gbt_int2_picksplit (internal, internal),
389 FUNCTION 7 gbt_int2_same (gbtreekey4, gbtreekey4, internal),
392 ALTER OPERATOR FAMILY gist_int2_ops USING gist ADD
393 OPERATOR 6 <> (int2, int2) ,
394 OPERATOR 15 <-> (int2, int2) FOR ORDER BY pg_catalog.integer_ops ,
395 FUNCTION 8 (int2, int2) gbt_int2_distance (internal, int2, int2, oid, internal) ,
396 FUNCTION 9 (int2, int2) gbt_int2_fetch (internal) ;
405 -- define the GiST support methods
406 CREATE FUNCTION gbt_int4_consistent(internal,int4,int2,oid,internal)
409 LANGUAGE C IMMUTABLE STRICT;
411 CREATE FUNCTION gbt_int4_distance(internal,int4,int2,oid,internal)
414 LANGUAGE C IMMUTABLE STRICT;
416 CREATE FUNCTION gbt_int4_compress(internal)
419 LANGUAGE C IMMUTABLE STRICT;
421 CREATE FUNCTION gbt_int4_fetch(internal)
424 LANGUAGE C IMMUTABLE STRICT;
426 CREATE FUNCTION gbt_int4_penalty(internal,internal,internal)
429 LANGUAGE C IMMUTABLE STRICT;
431 CREATE FUNCTION gbt_int4_picksplit(internal, internal)
434 LANGUAGE C IMMUTABLE STRICT;
436 CREATE FUNCTION gbt_int4_union(internal, internal)
439 LANGUAGE C IMMUTABLE STRICT;
441 CREATE FUNCTION gbt_int4_same(gbtreekey8, gbtreekey8, internal)
444 LANGUAGE C IMMUTABLE STRICT;
446 -- Create the operator class
447 CREATE OPERATOR CLASS gist_int4_ops
448 DEFAULT FOR TYPE int4 USING gist
455 FUNCTION 1 gbt_int4_consistent (internal, int4, int2, oid, internal),
456 FUNCTION 2 gbt_int4_union (internal, internal),
457 FUNCTION 3 gbt_int4_compress (internal),
458 FUNCTION 4 gbt_decompress (internal),
459 FUNCTION 5 gbt_int4_penalty (internal, internal, internal),
460 FUNCTION 6 gbt_int4_picksplit (internal, internal),
461 FUNCTION 7 gbt_int4_same (gbtreekey8, gbtreekey8, internal),
464 ALTER OPERATOR FAMILY gist_int4_ops USING gist ADD
465 OPERATOR 6 <> (int4, int4) ,
466 OPERATOR 15 <-> (int4, int4) FOR ORDER BY pg_catalog.integer_ops ,
467 FUNCTION 8 (int4, int4) gbt_int4_distance (internal, int4, int2, oid, internal) ,
468 FUNCTION 9 (int4, int4) gbt_int4_fetch (internal) ;
478 -- define the GiST support methods
479 CREATE FUNCTION gbt_int8_consistent(internal,int8,int2,oid,internal)
482 LANGUAGE C IMMUTABLE STRICT;
484 CREATE FUNCTION gbt_int8_distance(internal,int8,int2,oid,internal)
487 LANGUAGE C IMMUTABLE STRICT;
489 CREATE FUNCTION gbt_int8_compress(internal)
492 LANGUAGE C IMMUTABLE STRICT;
494 CREATE FUNCTION gbt_int8_fetch(internal)
497 LANGUAGE C IMMUTABLE STRICT;
499 CREATE FUNCTION gbt_int8_penalty(internal,internal,internal)
502 LANGUAGE C IMMUTABLE STRICT;
504 CREATE FUNCTION gbt_int8_picksplit(internal, internal)
507 LANGUAGE C IMMUTABLE STRICT;
509 CREATE FUNCTION gbt_int8_union(internal, internal)
512 LANGUAGE C IMMUTABLE STRICT;
514 CREATE FUNCTION gbt_int8_same(gbtreekey16, gbtreekey16, internal)
517 LANGUAGE C IMMUTABLE STRICT;
519 -- Create the operator class
520 CREATE OPERATOR CLASS gist_int8_ops
521 DEFAULT FOR TYPE int8 USING gist
528 FUNCTION 1 gbt_int8_consistent (internal, int8, int2, oid, internal),
529 FUNCTION 2 gbt_int8_union (internal, internal),
530 FUNCTION 3 gbt_int8_compress (internal),
531 FUNCTION 4 gbt_decompress (internal),
532 FUNCTION 5 gbt_int8_penalty (internal, internal, internal),
533 FUNCTION 6 gbt_int8_picksplit (internal, internal),
534 FUNCTION 7 gbt_int8_same (gbtreekey16, gbtreekey16, internal),
537 ALTER OPERATOR FAMILY gist_int8_ops USING gist ADD
538 OPERATOR 6 <> (int8, int8) ,
539 OPERATOR 15 <-> (int8, int8) FOR ORDER BY pg_catalog.integer_ops ,
540 FUNCTION 8 (int8, int8) gbt_int8_distance (internal, int8, int2, oid, internal) ,
541 FUNCTION 9 (int8, int8) gbt_int8_fetch (internal) ;
550 -- define the GiST support methods
551 CREATE FUNCTION gbt_float4_consistent(internal,float4,int2,oid,internal)
554 LANGUAGE C IMMUTABLE STRICT;
556 CREATE FUNCTION gbt_float4_distance(internal,float4,int2,oid,internal)
559 LANGUAGE C IMMUTABLE STRICT;
561 CREATE FUNCTION gbt_float4_compress(internal)
564 LANGUAGE C IMMUTABLE STRICT;
566 CREATE FUNCTION gbt_float4_fetch(internal)
569 LANGUAGE C IMMUTABLE STRICT;
571 CREATE FUNCTION gbt_float4_penalty(internal,internal,internal)
574 LANGUAGE C IMMUTABLE STRICT;
576 CREATE FUNCTION gbt_float4_picksplit(internal, internal)
579 LANGUAGE C IMMUTABLE STRICT;
581 CREATE FUNCTION gbt_float4_union(internal, internal)
584 LANGUAGE C IMMUTABLE STRICT;
586 CREATE FUNCTION gbt_float4_same(gbtreekey8, gbtreekey8, internal)
589 LANGUAGE C IMMUTABLE STRICT;
591 -- Create the operator class
592 CREATE OPERATOR CLASS gist_float4_ops
593 DEFAULT FOR TYPE float4 USING gist
600 FUNCTION 1 gbt_float4_consistent (internal, float4, int2, oid, internal),
601 FUNCTION 2 gbt_float4_union (internal, internal),
602 FUNCTION 3 gbt_float4_compress (internal),
603 FUNCTION 4 gbt_decompress (internal),
604 FUNCTION 5 gbt_float4_penalty (internal, internal, internal),
605 FUNCTION 6 gbt_float4_picksplit (internal, internal),
606 FUNCTION 7 gbt_float4_same (gbtreekey8, gbtreekey8, internal),
609 ALTER OPERATOR FAMILY gist_float4_ops USING gist ADD
610 OPERATOR 6 <> (float4, float4) ,
611 OPERATOR 15 <-> (float4, float4) FOR ORDER BY pg_catalog.float_ops ,
612 FUNCTION 8 (float4, float4) gbt_float4_distance (internal, float4, int2, oid, internal) ,
613 FUNCTION 9 (float4, float4) gbt_float4_fetch (internal) ;
622 -- define the GiST support methods
623 CREATE FUNCTION gbt_float8_consistent(internal,float8,int2,oid,internal)
626 LANGUAGE C IMMUTABLE STRICT;
628 CREATE FUNCTION gbt_float8_distance(internal,float8,int2,oid,internal)
631 LANGUAGE C IMMUTABLE STRICT;
633 CREATE FUNCTION gbt_float8_compress(internal)
636 LANGUAGE C IMMUTABLE STRICT;
638 CREATE FUNCTION gbt_float8_fetch(internal)
641 LANGUAGE C IMMUTABLE STRICT;
643 CREATE FUNCTION gbt_float8_penalty(internal,internal,internal)
646 LANGUAGE C IMMUTABLE STRICT;
648 CREATE FUNCTION gbt_float8_picksplit(internal, internal)
651 LANGUAGE C IMMUTABLE STRICT;
653 CREATE FUNCTION gbt_float8_union(internal, internal)
656 LANGUAGE C IMMUTABLE STRICT;
658 CREATE FUNCTION gbt_float8_same(gbtreekey16, gbtreekey16, internal)
661 LANGUAGE C IMMUTABLE STRICT;
663 -- Create the operator class
664 CREATE OPERATOR CLASS gist_float8_ops
665 DEFAULT FOR TYPE float8 USING gist
672 FUNCTION 1 gbt_float8_consistent (internal, float8, int2, oid, internal),
673 FUNCTION 2 gbt_float8_union (internal, internal),
674 FUNCTION 3 gbt_float8_compress (internal),
675 FUNCTION 4 gbt_decompress (internal),
676 FUNCTION 5 gbt_float8_penalty (internal, internal, internal),
677 FUNCTION 6 gbt_float8_picksplit (internal, internal),
678 FUNCTION 7 gbt_float8_same (gbtreekey16, gbtreekey16, internal),
681 ALTER OPERATOR FAMILY gist_float8_ops USING gist ADD
682 OPERATOR 6 <> (float8, float8) ,
683 OPERATOR 15 <-> (float8, float8) FOR ORDER BY pg_catalog.float_ops ,
684 FUNCTION 8 (float8, float8) gbt_float8_distance (internal, float8, int2, oid, internal) ,
685 FUNCTION 9 (float8, float8) gbt_float8_fetch (internal) ;
695 CREATE FUNCTION gbt_ts_consistent(internal,timestamp,int2,oid,internal)
698 LANGUAGE C IMMUTABLE STRICT;
700 CREATE FUNCTION gbt_ts_distance(internal,timestamp,int2,oid,internal)
703 LANGUAGE C IMMUTABLE STRICT;
705 CREATE FUNCTION gbt_tstz_consistent(internal,timestamptz,int2,oid,internal)
708 LANGUAGE C IMMUTABLE STRICT;
710 CREATE FUNCTION gbt_tstz_distance(internal,timestamptz,int2,oid,internal)
713 LANGUAGE C IMMUTABLE STRICT;
715 CREATE FUNCTION gbt_ts_compress(internal)
718 LANGUAGE C IMMUTABLE STRICT;
720 CREATE FUNCTION gbt_tstz_compress(internal)
723 LANGUAGE C IMMUTABLE STRICT;
725 CREATE FUNCTION gbt_ts_fetch(internal)
728 LANGUAGE C IMMUTABLE STRICT;
730 CREATE FUNCTION gbt_ts_penalty(internal,internal,internal)
733 LANGUAGE C IMMUTABLE STRICT;
735 CREATE FUNCTION gbt_ts_picksplit(internal, internal)
738 LANGUAGE C IMMUTABLE STRICT;
740 CREATE FUNCTION gbt_ts_union(internal, internal)
743 LANGUAGE C IMMUTABLE STRICT;
745 CREATE FUNCTION gbt_ts_same(gbtreekey16, gbtreekey16, internal)
748 LANGUAGE C IMMUTABLE STRICT;
750 -- Create the operator class
751 CREATE OPERATOR CLASS gist_timestamp_ops
752 DEFAULT FOR TYPE timestamp USING gist
759 FUNCTION 1 gbt_ts_consistent (internal, timestamp, int2, oid, internal),
760 FUNCTION 2 gbt_ts_union (internal, internal),
761 FUNCTION 3 gbt_ts_compress (internal),
762 FUNCTION 4 gbt_decompress (internal),
763 FUNCTION 5 gbt_ts_penalty (internal, internal, internal),
764 FUNCTION 6 gbt_ts_picksplit (internal, internal),
765 FUNCTION 7 gbt_ts_same (gbtreekey16, gbtreekey16, internal),
768 ALTER OPERATOR FAMILY gist_timestamp_ops USING gist ADD
769 OPERATOR 6 <> (timestamp, timestamp) ,
770 OPERATOR 15 <-> (timestamp, timestamp) FOR ORDER BY pg_catalog.interval_ops ,
771 FUNCTION 8 (timestamp, timestamp) gbt_ts_distance (internal, timestamp, int2, oid, internal) ,
772 FUNCTION 9 (timestamp, timestamp) gbt_ts_fetch (internal) ;
774 -- Create the operator class
775 CREATE OPERATOR CLASS gist_timestamptz_ops
776 DEFAULT FOR TYPE timestamptz USING gist
783 FUNCTION 1 gbt_tstz_consistent (internal, timestamptz, int2, oid, internal),
784 FUNCTION 2 gbt_ts_union (internal, internal),
785 FUNCTION 3 gbt_tstz_compress (internal),
786 FUNCTION 4 gbt_decompress (internal),
787 FUNCTION 5 gbt_ts_penalty (internal, internal, internal),
788 FUNCTION 6 gbt_ts_picksplit (internal, internal),
789 FUNCTION 7 gbt_ts_same (gbtreekey16, gbtreekey16, internal),
792 ALTER OPERATOR FAMILY gist_timestamptz_ops USING gist ADD
793 OPERATOR 6 <> (timestamptz, timestamptz) ,
794 OPERATOR 15 <-> (timestamptz, timestamptz) FOR ORDER BY pg_catalog.interval_ops ,
795 FUNCTION 8 (timestamptz, timestamptz) gbt_tstz_distance (internal, timestamptz, int2, oid, internal) ,
796 FUNCTION 9 (timestamptz, timestamptz) gbt_ts_fetch (internal) ;
806 CREATE FUNCTION gbt_time_consistent(internal,time,int2,oid,internal)
809 LANGUAGE C IMMUTABLE STRICT;
811 CREATE FUNCTION gbt_time_distance(internal,time,int2,oid,internal)
814 LANGUAGE C IMMUTABLE STRICT;
816 CREATE FUNCTION gbt_timetz_consistent(internal,timetz,int2,oid,internal)
819 LANGUAGE C IMMUTABLE STRICT;
821 CREATE FUNCTION gbt_time_compress(internal)
824 LANGUAGE C IMMUTABLE STRICT;
826 CREATE FUNCTION gbt_timetz_compress(internal)
829 LANGUAGE C IMMUTABLE STRICT;
831 CREATE FUNCTION gbt_time_fetch(internal)
834 LANGUAGE C IMMUTABLE STRICT;
836 CREATE FUNCTION gbt_time_penalty(internal,internal,internal)
839 LANGUAGE C IMMUTABLE STRICT;
841 CREATE FUNCTION gbt_time_picksplit(internal, internal)
844 LANGUAGE C IMMUTABLE STRICT;
846 CREATE FUNCTION gbt_time_union(internal, internal)
849 LANGUAGE C IMMUTABLE STRICT;
851 CREATE FUNCTION gbt_time_same(gbtreekey16, gbtreekey16, internal)
854 LANGUAGE C IMMUTABLE STRICT;
856 -- Create the operator class
857 CREATE OPERATOR CLASS gist_time_ops
858 DEFAULT FOR TYPE time USING gist
865 FUNCTION 1 gbt_time_consistent (internal, time, int2, oid, internal),
866 FUNCTION 2 gbt_time_union (internal, internal),
867 FUNCTION 3 gbt_time_compress (internal),
868 FUNCTION 4 gbt_decompress (internal),
869 FUNCTION 5 gbt_time_penalty (internal, internal, internal),
870 FUNCTION 6 gbt_time_picksplit (internal, internal),
871 FUNCTION 7 gbt_time_same (gbtreekey16, gbtreekey16, internal),
874 ALTER OPERATOR FAMILY gist_time_ops USING gist ADD
875 OPERATOR 6 <> (time, time) ,
876 OPERATOR 15 <-> (time, time) FOR ORDER BY pg_catalog.interval_ops ,
877 FUNCTION 8 (time, time) gbt_time_distance (internal, time, int2, oid, internal) ,
878 FUNCTION 9 (time, time) gbt_time_fetch (internal) ;
881 CREATE OPERATOR CLASS gist_timetz_ops
882 DEFAULT FOR TYPE timetz USING gist
889 FUNCTION 1 gbt_timetz_consistent (internal, timetz, int2, oid, internal),
890 FUNCTION 2 gbt_time_union (internal, internal),
891 FUNCTION 3 gbt_timetz_compress (internal),
892 FUNCTION 4 gbt_decompress (internal),
893 FUNCTION 5 gbt_time_penalty (internal, internal, internal),
894 FUNCTION 6 gbt_time_picksplit (internal, internal),
895 FUNCTION 7 gbt_time_same (gbtreekey16, gbtreekey16, internal),
898 ALTER OPERATOR FAMILY gist_timetz_ops USING gist ADD
899 OPERATOR 6 <> (timetz, timetz) ;
900 -- no 'fetch' function, as the compress function is lossy.
911 CREATE FUNCTION gbt_date_consistent(internal,date,int2,oid,internal)
914 LANGUAGE C IMMUTABLE STRICT;
916 CREATE FUNCTION gbt_date_distance(internal,date,int2,oid,internal)
919 LANGUAGE C IMMUTABLE STRICT;
921 CREATE FUNCTION gbt_date_compress(internal)
924 LANGUAGE C IMMUTABLE STRICT;
926 CREATE FUNCTION gbt_date_fetch(internal)
929 LANGUAGE C IMMUTABLE STRICT;
931 CREATE FUNCTION gbt_date_penalty(internal,internal,internal)
934 LANGUAGE C IMMUTABLE STRICT;
936 CREATE FUNCTION gbt_date_picksplit(internal, internal)
939 LANGUAGE C IMMUTABLE STRICT;
941 CREATE FUNCTION gbt_date_union(internal, internal)
944 LANGUAGE C IMMUTABLE STRICT;
946 CREATE FUNCTION gbt_date_same(gbtreekey8, gbtreekey8, internal)
949 LANGUAGE C IMMUTABLE STRICT;
951 -- Create the operator class
952 CREATE OPERATOR CLASS gist_date_ops
953 DEFAULT FOR TYPE date USING gist
960 FUNCTION 1 gbt_date_consistent (internal, date, int2, oid, internal),
961 FUNCTION 2 gbt_date_union (internal, internal),
962 FUNCTION 3 gbt_date_compress (internal),
963 FUNCTION 4 gbt_decompress (internal),
964 FUNCTION 5 gbt_date_penalty (internal, internal, internal),
965 FUNCTION 6 gbt_date_picksplit (internal, internal),
966 FUNCTION 7 gbt_date_same (gbtreekey8, gbtreekey8, internal),
969 ALTER OPERATOR FAMILY gist_date_ops USING gist ADD
970 OPERATOR 6 <> (date, date) ,
971 OPERATOR 15 <-> (date, date) FOR ORDER BY pg_catalog.integer_ops ,
972 FUNCTION 8 (date, date) gbt_date_distance (internal, date, int2, oid, internal) ,
973 FUNCTION 9 (date, date) gbt_date_fetch (internal) ;
984 CREATE FUNCTION gbt_intv_consistent(internal,interval,int2,oid,internal)
987 LANGUAGE C IMMUTABLE STRICT;
989 CREATE FUNCTION gbt_intv_distance(internal,interval,int2,oid,internal)
992 LANGUAGE C IMMUTABLE STRICT;
994 CREATE FUNCTION gbt_intv_compress(internal)
997 LANGUAGE C IMMUTABLE STRICT;
999 CREATE FUNCTION gbt_intv_decompress(internal)
1001 AS 'MODULE_PATHNAME'
1002 LANGUAGE C IMMUTABLE STRICT;
1004 CREATE FUNCTION gbt_intv_fetch(internal)
1006 AS 'MODULE_PATHNAME'
1007 LANGUAGE C IMMUTABLE STRICT;
1009 CREATE FUNCTION gbt_intv_penalty(internal,internal,internal)
1011 AS 'MODULE_PATHNAME'
1012 LANGUAGE C IMMUTABLE STRICT;
1014 CREATE FUNCTION gbt_intv_picksplit(internal, internal)
1016 AS 'MODULE_PATHNAME'
1017 LANGUAGE C IMMUTABLE STRICT;
1019 CREATE FUNCTION gbt_intv_union(internal, internal)
1021 AS 'MODULE_PATHNAME'
1022 LANGUAGE C IMMUTABLE STRICT;
1024 CREATE FUNCTION gbt_intv_same(gbtreekey32, gbtreekey32, internal)
1026 AS 'MODULE_PATHNAME'
1027 LANGUAGE C IMMUTABLE STRICT;
1029 -- Create the operator class
1030 CREATE OPERATOR CLASS gist_interval_ops
1031 DEFAULT FOR TYPE interval USING gist
1038 FUNCTION 1 gbt_intv_consistent (internal, interval, int2, oid, internal),
1039 FUNCTION 2 gbt_intv_union (internal, internal),
1040 FUNCTION 3 gbt_intv_compress (internal),
1041 FUNCTION 4 gbt_intv_decompress (internal),
1042 FUNCTION 5 gbt_intv_penalty (internal, internal, internal),
1043 FUNCTION 6 gbt_intv_picksplit (internal, internal),
1044 FUNCTION 7 gbt_intv_same (gbtreekey32, gbtreekey32, internal),
1045 STORAGE gbtreekey32;
1047 ALTER OPERATOR FAMILY gist_interval_ops USING gist ADD
1048 OPERATOR 6 <> (interval, interval) ,
1049 OPERATOR 15 <-> (interval, interval) FOR ORDER BY pg_catalog.interval_ops ,
1050 FUNCTION 8 (interval, interval) gbt_intv_distance (internal, interval, int2, oid, internal) ,
1051 FUNCTION 9 (interval, interval) gbt_intv_fetch (internal) ;
1061 -- define the GiST support methods
1062 CREATE FUNCTION gbt_cash_consistent(internal,money,int2,oid,internal)
1064 AS 'MODULE_PATHNAME'
1065 LANGUAGE C IMMUTABLE STRICT;
1067 CREATE FUNCTION gbt_cash_distance(internal,money,int2,oid,internal)
1069 AS 'MODULE_PATHNAME'
1070 LANGUAGE C IMMUTABLE STRICT;
1072 CREATE FUNCTION gbt_cash_compress(internal)
1074 AS 'MODULE_PATHNAME'
1075 LANGUAGE C IMMUTABLE STRICT;
1077 CREATE FUNCTION gbt_cash_fetch(internal)
1079 AS 'MODULE_PATHNAME'
1080 LANGUAGE C IMMUTABLE STRICT;
1082 CREATE FUNCTION gbt_cash_penalty(internal,internal,internal)
1084 AS 'MODULE_PATHNAME'
1085 LANGUAGE C IMMUTABLE STRICT;
1087 CREATE FUNCTION gbt_cash_picksplit(internal, internal)
1089 AS 'MODULE_PATHNAME'
1090 LANGUAGE C IMMUTABLE STRICT;
1092 CREATE FUNCTION gbt_cash_union(internal, internal)
1094 AS 'MODULE_PATHNAME'
1095 LANGUAGE C IMMUTABLE STRICT;
1097 CREATE FUNCTION gbt_cash_same(gbtreekey16, gbtreekey16, internal)
1099 AS 'MODULE_PATHNAME'
1100 LANGUAGE C IMMUTABLE STRICT;
1102 -- Create the operator class
1103 CREATE OPERATOR CLASS gist_cash_ops
1104 DEFAULT FOR TYPE money USING gist
1111 FUNCTION 1 gbt_cash_consistent (internal, money, int2, oid, internal),
1112 FUNCTION 2 gbt_cash_union (internal, internal),
1113 FUNCTION 3 gbt_cash_compress (internal),
1114 FUNCTION 4 gbt_decompress (internal),
1115 FUNCTION 5 gbt_cash_penalty (internal, internal, internal),
1116 FUNCTION 6 gbt_cash_picksplit (internal, internal),
1117 FUNCTION 7 gbt_cash_same (gbtreekey16, gbtreekey16, internal),
1118 STORAGE gbtreekey16;
1120 ALTER OPERATOR FAMILY gist_cash_ops USING gist ADD
1121 OPERATOR 6 <> (money, money) ,
1122 OPERATOR 15 <-> (money, money) FOR ORDER BY pg_catalog.money_ops ,
1123 FUNCTION 8 (money, money) gbt_cash_distance (internal, money, int2, oid, internal) ,
1124 FUNCTION 9 (money, money) gbt_cash_fetch (internal) ;
1134 -- define the GiST support methods
1135 CREATE FUNCTION gbt_macad_consistent(internal,macaddr,int2,oid,internal)
1137 AS 'MODULE_PATHNAME'
1138 LANGUAGE C IMMUTABLE STRICT;
1140 CREATE FUNCTION gbt_macad_compress(internal)
1142 AS 'MODULE_PATHNAME'
1143 LANGUAGE C IMMUTABLE STRICT;
1145 CREATE FUNCTION gbt_macad_fetch(internal)
1147 AS 'MODULE_PATHNAME'
1148 LANGUAGE C IMMUTABLE STRICT;
1150 CREATE FUNCTION gbt_macad_penalty(internal,internal,internal)
1152 AS 'MODULE_PATHNAME'
1153 LANGUAGE C IMMUTABLE STRICT;
1155 CREATE FUNCTION gbt_macad_picksplit(internal, internal)
1157 AS 'MODULE_PATHNAME'
1158 LANGUAGE C IMMUTABLE STRICT;
1160 CREATE FUNCTION gbt_macad_union(internal, internal)
1162 AS 'MODULE_PATHNAME'
1163 LANGUAGE C IMMUTABLE STRICT;
1165 CREATE FUNCTION gbt_macad_same(gbtreekey16, gbtreekey16, internal)
1167 AS 'MODULE_PATHNAME'
1168 LANGUAGE C IMMUTABLE STRICT;
1170 -- Create the operator class
1171 CREATE OPERATOR CLASS gist_macaddr_ops
1172 DEFAULT FOR TYPE macaddr USING gist
1179 FUNCTION 1 gbt_macad_consistent (internal, macaddr, int2, oid, internal),
1180 FUNCTION 2 gbt_macad_union (internal, internal),
1181 FUNCTION 3 gbt_macad_compress (internal),
1182 FUNCTION 4 gbt_decompress (internal),
1183 FUNCTION 5 gbt_macad_penalty (internal, internal, internal),
1184 FUNCTION 6 gbt_macad_picksplit (internal, internal),
1185 FUNCTION 7 gbt_macad_same (gbtreekey16, gbtreekey16, internal),
1186 STORAGE gbtreekey16;
1188 ALTER OPERATOR FAMILY gist_macaddr_ops USING gist ADD
1189 OPERATOR 6 <> (macaddr, macaddr) ,
1190 FUNCTION 9 (macaddr, macaddr) gbt_macad_fetch (internal);
1200 -- define the GiST support methods
1201 CREATE FUNCTION gbt_text_consistent(internal,text,int2,oid,internal)
1203 AS 'MODULE_PATHNAME'
1204 LANGUAGE C IMMUTABLE STRICT;
1206 CREATE FUNCTION gbt_bpchar_consistent(internal,bpchar,int2,oid,internal)
1208 AS 'MODULE_PATHNAME'
1209 LANGUAGE C IMMUTABLE STRICT;
1211 CREATE FUNCTION gbt_text_compress(internal)
1213 AS 'MODULE_PATHNAME'
1214 LANGUAGE C IMMUTABLE STRICT;
1216 CREATE FUNCTION gbt_bpchar_compress(internal)
1218 AS 'MODULE_PATHNAME'
1219 LANGUAGE C IMMUTABLE STRICT;
1221 CREATE FUNCTION gbt_text_penalty(internal,internal,internal)
1223 AS 'MODULE_PATHNAME'
1224 LANGUAGE C IMMUTABLE STRICT;
1226 CREATE FUNCTION gbt_text_picksplit(internal, internal)
1228 AS 'MODULE_PATHNAME'
1229 LANGUAGE C IMMUTABLE STRICT;
1231 CREATE FUNCTION gbt_text_union(internal, internal)
1232 RETURNS gbtreekey_var
1233 AS 'MODULE_PATHNAME'
1234 LANGUAGE C IMMUTABLE STRICT;
1236 CREATE FUNCTION gbt_text_same(gbtreekey_var, gbtreekey_var, internal)
1238 AS 'MODULE_PATHNAME'
1239 LANGUAGE C IMMUTABLE STRICT;
1241 -- Create the operator class
1242 CREATE OPERATOR CLASS gist_text_ops
1243 DEFAULT FOR TYPE text USING gist
1250 FUNCTION 1 gbt_text_consistent (internal, text, int2, oid, internal),
1251 FUNCTION 2 gbt_text_union (internal, internal),
1252 FUNCTION 3 gbt_text_compress (internal),
1253 FUNCTION 4 gbt_var_decompress (internal),
1254 FUNCTION 5 gbt_text_penalty (internal, internal, internal),
1255 FUNCTION 6 gbt_text_picksplit (internal, internal),
1256 FUNCTION 7 gbt_text_same (gbtreekey_var, gbtreekey_var, internal),
1257 STORAGE gbtreekey_var;
1259 ALTER OPERATOR FAMILY gist_text_ops USING gist ADD
1260 OPERATOR 6 <> (text, text) ,
1261 FUNCTION 9 (text, text) gbt_var_fetch (internal) ;
1264 ---- Create the operator class
1265 CREATE OPERATOR CLASS gist_bpchar_ops
1266 DEFAULT FOR TYPE bpchar USING gist
1273 FUNCTION 1 gbt_bpchar_consistent (internal, bpchar , int2, oid, internal),
1274 FUNCTION 2 gbt_text_union (internal, internal),
1275 FUNCTION 3 gbt_bpchar_compress (internal),
1276 FUNCTION 4 gbt_var_decompress (internal),
1277 FUNCTION 5 gbt_text_penalty (internal, internal, internal),
1278 FUNCTION 6 gbt_text_picksplit (internal, internal),
1279 FUNCTION 7 gbt_text_same (gbtreekey_var, gbtreekey_var, internal),
1280 STORAGE gbtreekey_var;
1282 ALTER OPERATOR FAMILY gist_bpchar_ops USING gist ADD
1283 OPERATOR 6 <> (bpchar, bpchar) ,
1284 FUNCTION 9 (bpchar, bpchar) gbt_var_fetch (internal) ;
1292 -- define the GiST support methods
1293 CREATE FUNCTION gbt_bytea_consistent(internal,bytea,int2,oid,internal)
1295 AS 'MODULE_PATHNAME'
1296 LANGUAGE C IMMUTABLE STRICT;
1298 CREATE FUNCTION gbt_bytea_compress(internal)
1300 AS 'MODULE_PATHNAME'
1301 LANGUAGE C IMMUTABLE STRICT;
1303 CREATE FUNCTION gbt_bytea_penalty(internal,internal,internal)
1305 AS 'MODULE_PATHNAME'
1306 LANGUAGE C IMMUTABLE STRICT;
1308 CREATE FUNCTION gbt_bytea_picksplit(internal, internal)
1310 AS 'MODULE_PATHNAME'
1311 LANGUAGE C IMMUTABLE STRICT;
1313 CREATE FUNCTION gbt_bytea_union(internal, internal)
1314 RETURNS gbtreekey_var
1315 AS 'MODULE_PATHNAME'
1316 LANGUAGE C IMMUTABLE STRICT;
1318 CREATE FUNCTION gbt_bytea_same(gbtreekey_var, gbtreekey_var, internal)
1320 AS 'MODULE_PATHNAME'
1321 LANGUAGE C IMMUTABLE STRICT;
1323 -- Create the operator class
1324 CREATE OPERATOR CLASS gist_bytea_ops
1325 DEFAULT FOR TYPE bytea USING gist
1332 FUNCTION 1 gbt_bytea_consistent (internal, bytea, int2, oid, internal),
1333 FUNCTION 2 gbt_bytea_union (internal, internal),
1334 FUNCTION 3 gbt_bytea_compress (internal),
1335 FUNCTION 4 gbt_var_decompress (internal),
1336 FUNCTION 5 gbt_bytea_penalty (internal, internal, internal),
1337 FUNCTION 6 gbt_bytea_picksplit (internal, internal),
1338 FUNCTION 7 gbt_bytea_same (gbtreekey_var, gbtreekey_var, internal),
1339 STORAGE gbtreekey_var;
1341 ALTER OPERATOR FAMILY gist_bytea_ops USING gist ADD
1342 OPERATOR 6 <> (bytea, bytea) ,
1343 FUNCTION 9 (bytea, bytea) gbt_var_fetch (internal) ;
1353 -- define the GiST support methods
1354 CREATE FUNCTION gbt_numeric_consistent(internal,numeric,int2,oid,internal)
1356 AS 'MODULE_PATHNAME'
1357 LANGUAGE C IMMUTABLE STRICT;
1359 CREATE FUNCTION gbt_numeric_compress(internal)
1361 AS 'MODULE_PATHNAME'
1362 LANGUAGE C IMMUTABLE STRICT;
1364 CREATE FUNCTION gbt_numeric_penalty(internal,internal,internal)
1366 AS 'MODULE_PATHNAME'
1367 LANGUAGE C IMMUTABLE STRICT;
1369 CREATE FUNCTION gbt_numeric_picksplit(internal, internal)
1371 AS 'MODULE_PATHNAME'
1372 LANGUAGE C IMMUTABLE STRICT;
1374 CREATE FUNCTION gbt_numeric_union(internal, internal)
1375 RETURNS gbtreekey_var
1376 AS 'MODULE_PATHNAME'
1377 LANGUAGE C IMMUTABLE STRICT;
1379 CREATE FUNCTION gbt_numeric_same(gbtreekey_var, gbtreekey_var, internal)
1381 AS 'MODULE_PATHNAME'
1382 LANGUAGE C IMMUTABLE STRICT;
1384 -- Create the operator class
1385 CREATE OPERATOR CLASS gist_numeric_ops
1386 DEFAULT FOR TYPE numeric USING gist
1393 FUNCTION 1 gbt_numeric_consistent (internal, numeric, int2, oid, internal),
1394 FUNCTION 2 gbt_numeric_union (internal, internal),
1395 FUNCTION 3 gbt_numeric_compress (internal),
1396 FUNCTION 4 gbt_var_decompress (internal),
1397 FUNCTION 5 gbt_numeric_penalty (internal, internal, internal),
1398 FUNCTION 6 gbt_numeric_picksplit (internal, internal),
1399 FUNCTION 7 gbt_numeric_same (gbtreekey_var, gbtreekey_var, internal),
1400 STORAGE gbtreekey_var;
1402 ALTER OPERATOR FAMILY gist_numeric_ops USING gist ADD
1403 OPERATOR 6 <> (numeric, numeric) ,
1404 FUNCTION 9 (numeric, numeric) gbt_var_fetch (internal) ;
1413 -- define the GiST support methods
1414 CREATE FUNCTION gbt_bit_consistent(internal,bit,int2,oid,internal)
1416 AS 'MODULE_PATHNAME'
1417 LANGUAGE C IMMUTABLE STRICT;
1419 CREATE FUNCTION gbt_bit_compress(internal)
1421 AS 'MODULE_PATHNAME'
1422 LANGUAGE C IMMUTABLE STRICT;
1424 CREATE FUNCTION gbt_bit_penalty(internal,internal,internal)
1426 AS 'MODULE_PATHNAME'
1427 LANGUAGE C IMMUTABLE STRICT;
1429 CREATE FUNCTION gbt_bit_picksplit(internal, internal)
1431 AS 'MODULE_PATHNAME'
1432 LANGUAGE C IMMUTABLE STRICT;
1434 CREATE FUNCTION gbt_bit_union(internal, internal)
1435 RETURNS gbtreekey_var
1436 AS 'MODULE_PATHNAME'
1437 LANGUAGE C IMMUTABLE STRICT;
1439 CREATE FUNCTION gbt_bit_same(gbtreekey_var, gbtreekey_var, internal)
1441 AS 'MODULE_PATHNAME'
1442 LANGUAGE C IMMUTABLE STRICT;
1444 -- Create the operator class
1445 CREATE OPERATOR CLASS gist_bit_ops
1446 DEFAULT FOR TYPE bit USING gist
1453 FUNCTION 1 gbt_bit_consistent (internal, bit, int2, oid, internal),
1454 FUNCTION 2 gbt_bit_union (internal, internal),
1455 FUNCTION 3 gbt_bit_compress (internal),
1456 FUNCTION 4 gbt_var_decompress (internal),
1457 FUNCTION 5 gbt_bit_penalty (internal, internal, internal),
1458 FUNCTION 6 gbt_bit_picksplit (internal, internal),
1459 FUNCTION 7 gbt_bit_same (gbtreekey_var, gbtreekey_var, internal),
1460 STORAGE gbtreekey_var;
1462 ALTER OPERATOR FAMILY gist_bit_ops USING gist ADD
1463 OPERATOR 6 <> (bit, bit) ,
1464 FUNCTION 9 (bit, bit) gbt_var_fetch (internal) ;
1467 -- Create the operator class
1468 CREATE OPERATOR CLASS gist_vbit_ops
1469 DEFAULT FOR TYPE varbit USING gist
1476 FUNCTION 1 gbt_bit_consistent (internal, bit, int2, oid, internal),
1477 FUNCTION 2 gbt_bit_union (internal, internal),
1478 FUNCTION 3 gbt_bit_compress (internal),
1479 FUNCTION 4 gbt_var_decompress (internal),
1480 FUNCTION 5 gbt_bit_penalty (internal, internal, internal),
1481 FUNCTION 6 gbt_bit_picksplit (internal, internal),
1482 FUNCTION 7 gbt_bit_same (gbtreekey_var, gbtreekey_var, internal),
1483 STORAGE gbtreekey_var;
1485 ALTER OPERATOR FAMILY gist_vbit_ops USING gist ADD
1486 OPERATOR 6 <> (varbit, varbit) ,
1487 FUNCTION 9 (varbit, varbit) gbt_var_fetch (internal) ;
1497 -- define the GiST support methods
1498 CREATE FUNCTION gbt_inet_consistent(internal,inet,int2,oid,internal)
1500 AS 'MODULE_PATHNAME'
1501 LANGUAGE C IMMUTABLE STRICT;
1503 CREATE FUNCTION gbt_inet_compress(internal)
1505 AS 'MODULE_PATHNAME'
1506 LANGUAGE C IMMUTABLE STRICT;
1508 CREATE FUNCTION gbt_inet_penalty(internal,internal,internal)
1510 AS 'MODULE_PATHNAME'
1511 LANGUAGE C IMMUTABLE STRICT;
1513 CREATE FUNCTION gbt_inet_picksplit(internal, internal)
1515 AS 'MODULE_PATHNAME'
1516 LANGUAGE C IMMUTABLE STRICT;
1518 CREATE FUNCTION gbt_inet_union(internal, internal)
1520 AS 'MODULE_PATHNAME'
1521 LANGUAGE C IMMUTABLE STRICT;
1523 CREATE FUNCTION gbt_inet_same(gbtreekey16, gbtreekey16, internal)
1525 AS 'MODULE_PATHNAME'
1526 LANGUAGE C IMMUTABLE STRICT;
1528 -- Create the operator class
1529 CREATE OPERATOR CLASS gist_inet_ops
1530 DEFAULT FOR TYPE inet USING gist
1537 FUNCTION 1 gbt_inet_consistent (internal, inet, int2, oid, internal),
1538 FUNCTION 2 gbt_inet_union (internal, internal),
1539 FUNCTION 3 gbt_inet_compress (internal),
1540 FUNCTION 4 gbt_decompress (internal),
1541 FUNCTION 5 gbt_inet_penalty (internal, internal, internal),
1542 FUNCTION 6 gbt_inet_picksplit (internal, internal),
1543 FUNCTION 7 gbt_inet_same (gbtreekey16, gbtreekey16, internal),
1544 STORAGE gbtreekey16;
1546 ALTER OPERATOR FAMILY gist_inet_ops USING gist ADD
1547 OPERATOR 6 <> (inet, inet) ;
1548 -- no fetch support, the compress function is lossy
1550 -- Create the operator class
1551 CREATE OPERATOR CLASS gist_cidr_ops
1552 DEFAULT FOR TYPE cidr USING gist
1554 OPERATOR 1 < (inet, inet) ,
1555 OPERATOR 2 <= (inet, inet) ,
1556 OPERATOR 3 = (inet, inet) ,
1557 OPERATOR 4 >= (inet, inet) ,
1558 OPERATOR 5 > (inet, inet) ,
1559 FUNCTION 1 gbt_inet_consistent (internal, inet, int2, oid, internal),
1560 FUNCTION 2 gbt_inet_union (internal, internal),
1561 FUNCTION 3 gbt_inet_compress (internal),
1562 FUNCTION 4 gbt_decompress (internal),
1563 FUNCTION 5 gbt_inet_penalty (internal, internal, internal),
1564 FUNCTION 6 gbt_inet_picksplit (internal, internal),
1565 FUNCTION 7 gbt_inet_same (gbtreekey16, gbtreekey16, internal),
1566 STORAGE gbtreekey16;
1568 ALTER OPERATOR FAMILY gist_cidr_ops USING gist ADD
1569 OPERATOR 6 <> (inet, inet) ;
1570 -- no fetch support, the compress function is lossy