Create a type-specific typanalyze routine for tsvector, which collects stats
commit12a19de4dcae075b5eb0e627f15458eb1c2ca7f8
authortgl <tgl>
Mon, 14 Jul 2008 00:51:46 +0000 (14 00:51 +0000)
committertgl <tgl>
Mon, 14 Jul 2008 00:51:46 +0000 (14 00:51 +0000)
tree8c2a980adedd0cb46f48c796fe3732fdef4742de
parent8676d942c3c6a3fa735f07a3059bbaea7b839ad3
Create a type-specific typanalyze routine for tsvector, which collects stats
on the most common individual lexemes in place of the mostly-useless default
behavior of counting duplicate tsvectors.  Future work: create selectivity
estimation functions that actually do something with these stats.

(Some other things we ought to look at doing: using the Lossy Counting
algorithm in compute_minimal_stats, and using the element-counting idea for
stats on regular arrays.)

Jan Urbanski
doc/src/sgml/catalogs.sgml
src/backend/catalog/system_views.sql
src/backend/tsearch/Makefile
src/backend/tsearch/ts_typanalyze.c [new file with mode: 0644]
src/include/catalog/catversion.h
src/include/catalog/pg_operator.h
src/include/catalog/pg_proc.h
src/include/catalog/pg_statistic.h
src/include/catalog/pg_type.h
src/include/tsearch/ts_type.h
src/test/regress/expected/rules.out