1 /* contrib/intarray/intarray--1.0--1.1.sql */
3 -- complain if script is sourced in psql, rather than via CREATE EXTENSION
4 \echo Use "ALTER EXTENSION intarray UPDATE TO '1.1'" to load this file. \quit
6 CREATE FUNCTION _int_matchsel(internal, oid, internal, integer)
9 LANGUAGE C STRICT STABLE;
11 ALTER OPERATOR @@ (_int4, query_int) SET (RESTRICT = _int_matchsel);
12 ALTER OPERATOR ~~ (query_int, _int4) SET (RESTRICT = _int_matchsel);
14 CREATE FUNCTION _int_overlap_sel(internal, oid, internal, integer)
17 LANGUAGE C STRICT STABLE;
19 CREATE FUNCTION _int_contains_sel(internal, oid, internal, integer)
22 LANGUAGE C STRICT STABLE;
24 CREATE FUNCTION _int_contained_sel(internal, oid, internal, integer)
27 LANGUAGE C STRICT STABLE;
29 CREATE FUNCTION _int_overlap_joinsel(internal, oid, internal, smallint, internal)
32 LANGUAGE C STRICT STABLE;
34 CREATE FUNCTION _int_contains_joinsel(internal, oid, internal, smallint, internal)
37 LANGUAGE C STRICT STABLE;
39 CREATE FUNCTION _int_contained_joinsel(internal, oid, internal, smallint, internal)
42 LANGUAGE C STRICT STABLE;
44 ALTER OPERATOR && (_int4, _int4) SET (RESTRICT = _int_overlap_sel, JOIN = _int_overlap_joinsel);
45 ALTER OPERATOR @> (_int4, _int4) SET (RESTRICT = _int_contains_sel, JOIN = _int_contains_joinsel);
46 ALTER OPERATOR <@ (_int4, _int4) SET (RESTRICT = _int_contained_sel, JOIN = _int_contained_joinsel);
48 ALTER OPERATOR @ (_int4, _int4) SET (RESTRICT = _int_contains_sel, JOIN = _int_contains_joinsel);
49 ALTER OPERATOR ~ (_int4, _int4) SET (RESTRICT = _int_contained_sel, JOIN = _int_contained_joinsel);