diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-07-14 00:51:46 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-07-14 00:51:46 +0000 |
| commit | 6f6d8632583353d60fe3bb1694b39f6124f6e5d1 (patch) | |
| tree | fcd0a2eee9e7a5efbb17ab6312d4da2a96bfefd2 /src/include/tsearch | |
| parent | 6816577a786cd9be257f6600e3cde2d86f5adb46 (diff) | |
| download | postgresql-6f6d8632583353d60fe3bb1694b39f6124f6e5d1.tar.gz | |
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
Diffstat (limited to 'src/include/tsearch')
| -rw-r--r-- | src/include/tsearch/ts_type.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/tsearch/ts_type.h b/src/include/tsearch/ts_type.h index 067114f92e..a546d015b5 100644 --- a/src/include/tsearch/ts_type.h +++ b/src/include/tsearch/ts_type.h @@ -5,7 +5,7 @@ * * Copyright (c) 1998-2008, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/include/tsearch/ts_type.h,v 1.12 2008/06/10 08:55:50 heikki Exp $ + * $PostgreSQL: pgsql/src/include/tsearch/ts_type.h,v 1.13 2008/07/14 00:51:45 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -153,6 +153,8 @@ extern Datum ts_rankcd_wtt(PG_FUNCTION_ARGS); extern Datum ts_rankcd_ttf(PG_FUNCTION_ARGS); extern Datum ts_rankcd_wttf(PG_FUNCTION_ARGS); +extern Datum ts_typanalyze(PG_FUNCTION_ARGS); + /* * TSQuery |
