Fix minor nbtree page deletion buffer lock issue.
[pgsql.git] / contrib / btree_gin / btree_gin--1.0--1.1.sql
blobdd81d27599c40ecfd8b06d164f9b4f61a39921c3
1 /* contrib/btree_gin/btree_gin--1.0--1.1.sql */
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
6 -- macaddr8 datatype support new in 10.0.
7 CREATE FUNCTION gin_extract_value_macaddr8(macaddr8, internal)
8 RETURNS internal
9 AS 'MODULE_PATHNAME'
10 LANGUAGE C STRICT IMMUTABLE;
12 CREATE FUNCTION gin_compare_prefix_macaddr8(macaddr8, macaddr8, int2, internal)
13 RETURNS int4
14 AS 'MODULE_PATHNAME'
15 LANGUAGE C STRICT IMMUTABLE;
17 CREATE FUNCTION gin_extract_query_macaddr8(macaddr8, internal, int2, internal, internal)
18 RETURNS internal
19 AS 'MODULE_PATHNAME'
20 LANGUAGE C STRICT IMMUTABLE;
22 CREATE OPERATOR CLASS macaddr8_ops
23 DEFAULT FOR TYPE macaddr8 USING gin
25     OPERATOR        1       <,
26     OPERATOR        2       <=,
27     OPERATOR        3       =,
28     OPERATOR        4       >=,
29     OPERATOR        5       >,
30     FUNCTION        1       macaddr8_cmp(macaddr8, macaddr8),
31     FUNCTION        2       gin_extract_value_macaddr8(macaddr8, internal),
32     FUNCTION        3       gin_extract_query_macaddr8(macaddr8, internal, int2, internal, internal),
33     FUNCTION        4       gin_btree_consistent(internal, int2, anyelement, int4, internal, internal),
34     FUNCTION        5       gin_compare_prefix_macaddr8(macaddr8, macaddr8, int2, internal),
35 STORAGE         macaddr8;