postgresql/src/backend/tsearch
Tom Lane 40608e7f94 When estimating the selectivity of an inequality "column > constant" or
"column < constant", and the comparison value is in the first or last
histogram bin or outside the histogram entirely, try to fetch the actual
column min or max value using an index scan (if there is an index on the
column).  If successful, replace the lower or upper histogram bound with
that value before carrying on with the estimate.  This limits the
estimation error caused by moving min/max values when the comparison
value is close to the min or max.  Per a complaint from Josh Berkus.

It is tempting to consider using this mechanism for mergejoinscansel as well,
but that would inject index fetches into main-line join estimation not just
endpoint cases.  I'm refraining from that until we can get a better handle
on the costs of doing this type of lookup.
2010-01-04 02:44:40 +00:00
..
Makefile Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
dict.c Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
dict_ispell.c Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
dict_simple.c Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
dict_synonym.c Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
dict_thesaurus.c Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
hunspell_sample.affix Add regression tests for ispell, synonym and thesaurus dictionaries. 2007-09-11 11:54:42 +00:00
ispell_sample.affix Add regression tests for ispell, synonym and thesaurus dictionaries. 2007-09-11 11:54:42 +00:00
ispell_sample.dict Add regression tests for ispell, synonym and thesaurus dictionaries. 2007-09-11 11:54:42 +00:00
regis.c Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
spell.c Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
synonym_sample.syn Add prefix support for synonym dictionary 2009-08-14 14:53:20 +00:00
thesaurus_sample.ths Have text search thesaurus files use "?" for stop words. 2007-11-10 15:39:34 +00:00
to_tsany.c Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
ts_locale.c Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
ts_parse.c Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
ts_selfuncs.c When estimating the selectivity of an inequality "column > constant" or 2010-01-04 02:44:40 +00:00
ts_typanalyze.c Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
ts_utils.c Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
wparser.c Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
wparser_def.c Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00