On Tue, Feb 9, 2010 at 12:55 AM, AI Rumman <rummandba(at)gmail(dot)com> wrote:
> I have created a index
> create index leadaddress_phone_idx on
> leadaddress(regexp_replace((phone)::text, '[^0-9]*'::text, ''::text,
> 'g'::text));
>
> But the index is not using.
like '%yada'
isn't capable of using an index. If it's left anchored:
like 'yada%'
it can.