Re: Possible solution for LIKE optimization
Giles Lean <giles@nemeton.com.au>
From: Giles Lean <giles@nemeton.com.au>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: PostgreSQL Development <pgsql-hackers@postgresql.org>
Date: 2001-08-06T21:46:48Z
Lists: pgsql-hackers
[ I realise the discussion has left strxfrm(), but for the archives if nothing else ... ] Peter Eisentraut <peter_e@gmx.net> wrote: > We'd need to implement the strxfrm() function in SQL and the $<=$ > operator, both of which are trivial. The index would have to be in terms > of strxfrm(). There might be other issues, but they could be solved > algorithmically, I suppose. 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. Regards, Giles