File tree Expand file tree Collapse file tree 3 files changed +24
-2
lines changed
Expand file tree Collapse file tree 3 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 11MODULE_big = tsvector2
22OBJS = src/tsvector2.o src/tsvector2_op.o src/tsvector2_rank.o \
3- src/tsvector2_conv.o src/tsvector2_gin.o
3+ src/tsvector2_conv.o
44
55EXTENSION = tsvector2
66EXTVERSION = 1.0
77DATA_built = tsvector2--$(EXTVERSION ) .sql
88
9- REGRESS = operators functions match rank json
9+ REGRESS = operators functions match rank json btree
1010
1111EXTRA_CLEAN = tsvector2--$(EXTVERSION ) .sql
1212
Original file line number Diff line number Diff line change @@ -68,6 +68,11 @@ CREATE FUNCTION tsvector2_gt(tsvector2, tsvector2)
6868 AS ' MODULE_PATHNAME'
6969 LANGUAGE C STRICT IMMUTABLE;
7070
71+ CREATE FUNCTION tsvector2_cmp (tsvector2, tsvector2)
72+ RETURNS int
73+ AS ' MODULE_PATHNAME'
74+ LANGUAGE C STRICT IMMUTABLE;
75+
7176CREATE FUNCTION tsvector2_match_tsquery (tsvector2, tsquery)
7277 RETURNS bool
7378 AS ' MODULE_PATHNAME'
@@ -279,3 +284,18 @@ CREATE FUNCTION ts_rank(tsvector2, tsquery)
279284 RETURNS float4
280285 AS ' MODULE_PATHNAME' , ' tsvector2_rank_tt'
281286 LANGUAGE C STRICT IMMUTABLE;
287+
288+ -- operator families for various types of indexes
289+ CREATE OPERATOR FAMILY tsvector2_ops USING btree;
290+ CREATE OPERATOR FAMILY tsvector2_ops USING gist;
291+ CREATE OPERATOR FAMILY tsvector2_ops USING gin;
292+
293+ -- btree support
294+ CREATE OPERATOR CLASS tsvector2_ops DEFAULT
295+ FOR TYPE tsvector2 USING btree FAMILY tsvector2_ops AS
296+ OPERATOR 1 < ,
297+ OPERATOR 2 <= ,
298+ OPERATOR 3 = ,
299+ OPERATOR 4 >= ,
300+ OPERATOR 5 > ,
301+ FUNCTION 1 tsvector2_cmp(tsvector2, tsvector2);
Original file line number Diff line number Diff line change 11comment = 'tsvector2 - extended format of tsvector'
22default_version = '1.0'
33module_pathname = '$libdir/tsvector2'
4+ relocatable = false
5+ schema = 'public'
You can’t perform that action at this time.
0 commit comments