Re: how to speed ilike - Mailing list pgsql-admin

From Julius Tuskenis
Subject Re: how to speed ilike
Date
Msg-id 4B5DB9B6.5040306@nsoft.lt
Whole thread Raw
In response to Re: how to speed ilike  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Responses Re: how to speed ilike  (Kenneth Marshall <ktm@rice.edu>)
Re: how to speed ilike  (Dimitri Fontaine <dfontaine@hi-media.com>)
List pgsql-admin
Thank you for your answer Kevin.
> create index tblname_username_latin on tblname
> ((fnk_latin(username)));
>
Tried this, but with no changes
> You might want to have that function force all letters to lowercase.
>
Tried that too, but seem to me that ILIKE doesn't use the index. I'm
using username ilike '%blablabla%' , so maybe theres no way for ilike to
benefit from an index.
> It might also help to specify varchar_pattern_ops.
>
I added varchar_pattern_ops to index declaration, but this didn't help
either.

Do you have any other ideas?

--
Julius Tuskenis
Programavimo skyriaus vadovas
UAB nSoft
mob. +37068233050


pgsql-admin by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: max_fsm_pages question
Next
From: Michael Monnerie
Date:
Subject: Re: max_fsm_pages question