]> granicus.if.org Git - postgresql/commit
Create a type-specific typanalyze routine for tsvector, which collects stats
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 14 Jul 2008 00:51:46 +0000 (00:51 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 14 Jul 2008 00:51:46 +0000 (00:51 +0000)
commit6f6d8632583353d60fe3bb1694b39f6124f6e5d1
treefcd0a2eee9e7a5efbb17ab6312d4da2a96bfefd2
parent6816577a786cd9be257f6600e3cde2d86f5adb46
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