Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 1FA136325E3 for ; Thu, 18 Feb 2010 07:56:05 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 82785-08 for ; Thu, 18 Feb 2010 11:55:48 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pz0-f180.google.com (mail-pz0-f180.google.com [209.85.222.180]) by mail.postgresql.org (Postfix) with ESMTP id 4D47063280E for ; Thu, 18 Feb 2010 07:55:54 -0400 (AST) Received: by pzk10 with SMTP id 10so1381724pzk.19 for ; Thu, 18 Feb 2010 03:55:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=k79ajvPaDP9XhIIRz9w25CFZDpUiZYifPRCJ9EBLJlE=; b=f7xV0YPlDBjRqRx0gYRdCXztckgt+C3wfpIO97dckglG9Emt51KzUmDtWaKpndYatB HCysmMbXzgayIeJ1a9zijutkj38qxGAE/w2Mkcfj8inxMVcZqRo2MAsyaB32QB+qWNLc vgT8wQTcT9ur+HWNl8UW3DinY3ntrK9vjrrCk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=XNDSd9ZFSNMbEEB/x+9q6UlLgrMJX/VZ4AjoPuGRck66clCmijVz/RVIAFVcVQ1tay W38thQioTczqcXsDAhZcWpZ0xuxhf58WMJsx2/ESKLawhKqfBhs38j9tP2oVqZ6x2p8e fzMhhf8hpTKiQGUunF6UZrrZV/MOHgOAX5cQk= MIME-Version: 1.0 Received: by 10.141.90.12 with SMTP id s12mr6184921rvl.123.1266494152234; Thu, 18 Feb 2010 03:55:52 -0800 (PST) Date: Thu, 18 Feb 2010 17:55:52 +0600 Message-ID: <2a7905441002180355w6dc89a87y8643c0a7f881072a@mail.gmail.com> Subject: index usage in not like From: AI Rumman To: pgsql-performance@postgresql.org Content-Type: multipart/alternative; boundary=000e0cd111b20dd957047fdea601 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.399 tagged_above=-10 required=5 tests=AWL=-0.215, BAYES_40=-0.185, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201002/270 X-Sequence-Number: 37691 --000e0cd111b20dd957047fdea601 Content-Type: text/plain; charset=ISO-8859-1 "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. --000e0cd111b20dd957047fdea601 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
"Not like" operation does not use index.
=A0
select * from vtiger_contactscf where lower(cf_1253) not like=A0 lower= ('Former%')
=A0
I created index on lower(cf_1253).
=A0
How can I ensure index usage in not like operation?
Anyone please help.
=A0
--000e0cd111b20dd957047fdea601--