Re: citext like searches using index - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: citext like searches using index
Date
Msg-id 515AE1B7.9090801@gmx.net
Whole thread Raw
In response to Re: citext like searches using index  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: citext like searches using index
List pgsql-hackers
On 3/30/13 11:35 PM, Tom Lane wrote:
> The LIKE index optimization is hard-wired into
> match_special_index_operator(), which never heard of citext's ~~
> operators.
> 
> I've wanted for years to replace that mechanism with something that
> would support plug-in extensions, but have no very good idea how to
> do it.

I have been thinking there should be a GiST index that associates with
the pattern matching operators.  I haven't worked out the details, but
at least this seems it might be the right framework to solve this problem.




pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Page replacement algorithm in buffer cache
Next
From: Tom Lane
Date:
Subject: Re: citext like searches using index