Re: index is not using? - Mailing list pgsql-performance

From Scott Marlowe
Subject Re: index is not using?
Date
Msg-id dcc563d11002090033h758f608di7ea512f9074fc00a@mail.gmail.com
Whole thread Raw
In response to index is not using?  (AI Rumman <rummandba@gmail.com>)
List pgsql-performance
On Tue, Feb 9, 2010 at 12:55 AM, AI Rumman <rummandba@gmail.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.

pgsql-performance by date:

Previous
From: AI Rumman
Date:
Subject: index is not using?
Next
From: Guillaume Lelarge
Date:
Subject: Re: [GENERAL] index is not using