From: AI Rumman <rummandba@gmail.com>
To: pgsql-performance@postgresql.org
Subject: index usage in not like
Date: Thu, 18 Feb 2010 17:55:52 +0600
Message-ID: <2a7905441002180355w6dc89a87y8643c0a7f881072a@mail.gmail.com> (raw)
"Not like" operation does not use index.
select * from vtiger_contactscf where lower(cf_1253) not like
lower('Former%')
I created index on lower(cf_1253).
How can I ensure index usage in not like operation?
Anyone please help.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: rummandba@gmail.com
Subject: Re: index usage in not like
In-Reply-To: <2a7905441002180355w6dc89a87y8643c0a7f881072a@mail.gmail.com>
References: <2a7905441002180355w6dc89a87y8643c0a7f881072a@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