postgresql/src/include/tsearch
Heikki Linnakangas c5608ea26a Allow opclasses to provide tri-valued GIN consistent functions.
With the GIN "fast scan" feature, GIN can skip items without fetching all
the keys for them, if it can prove that they don't match regardless of
those keys. So far, it has done the proving by calling the boolean
consistent function with all combinations of TRUE/FALSE for the unfetched
keys, but since that's O(n^2), it becomes unfeasible with more than a few
keys. We can avoid calling consistent with all the combinations, if we can
tell the operator class implementation directly which keys are unknown.

This commit includes a triConsistent function for the built-in array and
tsvector opclasses.

Alexander Korotkov, with some changes by me.
2014-03-12 17:51:30 +02:00
..
dicts Update copyright for 2014 2014-01-07 16:05:30 -05:00
ts_cache.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
ts_locale.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
ts_public.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
ts_type.h Predict integer overflow to avoid buffer overruns. 2014-02-17 09:33:31 -05:00
ts_utils.h Allow opclasses to provide tri-valued GIN consistent functions. 2014-03-12 17:51:30 +02:00