1/* contrib/btree_gin/btree_gin--1.1--1.2.sql */ 2 3-- complain if script is sourced in psql, rather than via CREATE EXTENSION 4\echo Use "ALTER EXTENSION btree_gin UPDATE TO '1.1'" to load this file. \quit 5 6-- 7-- 8-- 9-- enum ops 10-- 11-- 12 13 14CREATE FUNCTION gin_extract_value_anyenum(anyenum, internal) 15RETURNS internal 16AS 'MODULE_PATHNAME' 17LANGUAGE C STRICT IMMUTABLE; 18 19CREATE FUNCTION gin_compare_prefix_anyenum(anyenum, anyenum, int2, internal) 20RETURNS int4 21AS 'MODULE_PATHNAME' 22LANGUAGE C STRICT IMMUTABLE; 23 24CREATE FUNCTION gin_extract_query_anyenum(anyenum, internal, int2, internal, internal) 25RETURNS internal 26AS 'MODULE_PATHNAME' 27LANGUAGE C STRICT IMMUTABLE; 28 29CREATE FUNCTION gin_enum_cmp(anyenum, anyenum) 30RETURNS int4 31AS 'MODULE_PATHNAME' 32LANGUAGE C STRICT IMMUTABLE; 33 34CREATE OPERATOR CLASS enum_ops 35DEFAULT FOR TYPE anyenum USING gin 36AS 37 OPERATOR 1 <, 38 OPERATOR 2 <=, 39 OPERATOR 3 =, 40 OPERATOR 4 >=, 41 OPERATOR 5 >, 42 FUNCTION 1 gin_enum_cmp(anyenum,anyenum), 43 FUNCTION 2 gin_extract_value_anyenum(anyenum, internal), 44 FUNCTION 3 gin_extract_query_anyenum(anyenum, internal, int2, internal, internal), 45 FUNCTION 4 gin_btree_consistent(internal, int2, anyelement, int4, internal, internal), 46 FUNCTION 5 gin_compare_prefix_anyenum(anyenum,anyenum,int2, internal), 47STORAGE anyenum; 48