mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-26 19:57:19 +02:00
1 Comparison operation for tsquery 2 Btree index on tsquery 3 numnode(tsquery) - returns 'length' of tsquery 4 tsquery @ tsquery, tsquery ~ tsquery - contains, contained for tsquery. Note: They don't gurantee exact result, only MAY BE, so it useful only for speed up rewrite functions 5 GiST index support for @,~ 6 rewrite(): select rewrite(orig, what, to); select rewrite(ARRAY[orig, what, to]) from tsquery_table; select rewrite(orig, 'select what, to from tsquery_table;'); 7 significantly improve cover algorithm
53 lines
1.3 KiB
Makefile
53 lines
1.3 KiB
Makefile
# $PostgreSQL: pgsql/contrib/tsearch2/Makefile,v 1.11 2005/11/08 17:08:46 teodor Exp $
|
|
|
|
MODULE_big = tsearch2
|
|
OBJS = dict_ex.o dict.o snmap.o stopword.o common.o prs_dcfg.o \
|
|
dict_snowball.o dict_ispell.o dict_syn.o \
|
|
wparser.o wparser_def.o \
|
|
ts_cfg.o tsvector.o query_cleanup.o crc32.o query.o gistidx.o \
|
|
tsvector_op.o rank.o ts_stat.o \
|
|
query_util.o query_support.o query_rewrite.o query_gist.o
|
|
|
|
SUBDIRS := snowball ispell wordparser
|
|
SUBDIROBJS := $(SUBDIRS:%=%/SUBSYS.o)
|
|
|
|
OBJS += $(SUBDIROBJS)
|
|
|
|
PG_CPPFLAGS = -I$(srcdir)/snowball -I$(srcdir)/ispell -I$(srcdir)/wordparser
|
|
|
|
DATA = stopword/english.stop stopword/russian.stop
|
|
DATA_built = tsearch2.sql untsearch2.sql
|
|
DOCS = README.tsearch2
|
|
REGRESS = tsearch2
|
|
|
|
SHLIB_LINK += $(filter -lm, $(LIBS))
|
|
|
|
|
|
ifdef USE_PGXS
|
|
PGXS := $(shell pg_config --pgxs)
|
|
include $(PGXS)
|
|
else
|
|
subdir = contrib/tsearch2
|
|
top_builddir = ../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
|
endif
|
|
|
|
|
|
$(SUBDIROBJS): $(SUBDIRS:%=%-recursive) ;
|
|
|
|
$(SUBDIRS:%=%-recursive):
|
|
$(MAKE) -C $(subst -recursive,,$@) SUBSYS.o
|
|
|
|
tsearch2.sql: tsearch.sql.in
|
|
sed -e 's,MODULE_PATHNAME,$$libdir/$(MODULE_big),g' $< >$@
|
|
|
|
untsearch2.sql: untsearch.sql.in
|
|
cp $< $@
|
|
|
|
.PHONY: subclean
|
|
clean: subclean
|
|
|
|
subclean:
|
|
for dir in $(SUBDIRS); do $(MAKE) -C $$dir clean || exit; done
|