Re: Possible solution for LIKE optimization - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Possible solution for LIKE optimization
Date
Msg-id 24902.997136508@sss.pgh.pa.us
Whole thread Raw
In response to Re: Possible solution for LIKE optimization  (Giles Lean <giles@nemeton.com.au>)
Responses Re: Possible solution for LIKE optimization
List pgsql-hackers
Giles Lean <giles@nemeton.com.au> writes:
> Implementations of strxfrm() that I've looked at have had result data
> that is three or four times larger than then input string -- quite a
> penalty in some situations.

Especially so given that we don't have TOAST for indexes, so the indexed
value can't exceed about 2700 bytes (for btree and an 8K block size).
You are allowed to compress first, so that's not a hard limit, but it
could still be a problem.

I like the non-locale-aware-opclass idea much better than the original.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Roderick A. Anderson"
Date:
Subject: Re: Re: Notes about int8 sequences
Next
From: Tom Lane
Date:
Subject: Re: Re: Notes about int8 sequences