Re: wildcard search support for pg_trgm - Mailing list pgsql-hackers

From Tom Lane
Subject Re: wildcard search support for pg_trgm
Date
Msg-id 14415.1296528032@sss.pgh.pa.us
Whole thread Raw
In response to Re: wildcard search support for pg_trgm  (Jan Urbański <wulczer@wulczer.org>)
Responses Re: wildcard search support for pg_trgm  (Alexander Korotkov <aekorotkov@gmail.com>)
List pgsql-hackers
Jan Urbański <wulczer@wulczer.org> writes:
> OK, now it works flawlessly as far as I can tell. Will mark it as Ready
> for Committer.

Applied with mostly-stylistic corrections, plus addition of
documentation and a minimal regression test.

I did *not* apply this bit:

>> 2) I found gist index not very useful with default SIGLENINT = 3. I've
>> changed this value to 15 and I found gist index performs very good on
>> dictionary. But on longer strings greater values of SIGLENINT may be
>> required (probably even SIGLENINT > 122 will give benefit in some cases in
>> spite of TOAST).

AFAICT that would break on-disk compatibility of pg_trgm GIST indexes.
I don't believe we have adequate evidence to justify doing that, and
in any case it ought to be a separate patch rather than buried inside a
mostly unrelated feature patch.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [pgsql-general 2011-1-21:] Are there any projects interested in object functionality? (+ rule bases)
Next
From: Tom Lane
Date:
Subject: Re: [pgsql-general 2011-1-21:] Are there any projects interested in object functionality? (+ rule bases)