From: Scott Marlowe <scott.marlowe@gmail.com>
To: AI Rumman <rummandba@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: index is not using?
Date: Tue, 9 Feb 2010 01:33:13 -0700
Message-ID: <dcc563d11002090033h758f608di7ea512f9074fc00a@mail.gmail.com> (raw)
In-Reply-To: <2a7905441002082355w72ec4b2br9b406f186d87c12a@mail.gmail.com>
References: <2a7905441002082355w72ec4b2br9b406f186d87c12a@mail.gmail.com>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: scott.marlowe@gmail.com, rummandba@gmail.com
Subject: Re: index is not using?
In-Reply-To: <dcc563d11002090033h758f608di7ea512f9074fc00a@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox