Re: pgsql: Allow opclasses to provide tri-valued GIN consistent functions. - Mailing list pgsql-committers

From Thom Brown
Subject Re: pgsql: Allow opclasses to provide tri-valued GIN consistent functions.
Date
Msg-id CAA-aLv4nOYV1u1uAjMYktDShszvHdc+UV35MFfKKKtAniL6OLQ@mail.gmail.com
Whole thread Raw
In response to pgsql: Allow opclasses to provide tri-valued GIN consistent functions.  (Heikki Linnakangas <heikki.linnakangas@iki.fi>)
Responses Re: pgsql: Allow opclasses to provide tri-valued GIN consistent functions.  (Heikki Linnakangas <hlinnakangas@vmware.com>)
List pgsql-committers
On 12 March 2014 15:52, Heikki Linnakangas <heikki.linnakangas@iki.fi> wrote:
> 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.

Patch to fix a couple typos attached.

--
Thom

Attachment

pgsql-committers by date:

Previous
From: Bruce Momjian
Date:
Subject: pgsql: C comments: remove odd blank lines after #ifdef WIN32 lines
Next
From: Heikki Linnakangas
Date:
Subject: pgsql: Fix a couple of typos in docs.