X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id F2A4B8B9BC9 for ; Mon, 7 Feb 2005 11:46:16 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 44505-06 for ; Mon, 7 Feb 2005 11:46:05 +0000 (GMT) Received: from cassarossa.samfundet.no (cassarossa.samfundet.no [129.241.93.19]) by svr1.postgresql.org (Postfix) with ESMTP id 957848B9C6C for ; Mon, 7 Feb 2005 11:46:06 +0000 (GMT) Received: from trofast.sesse.net ([129.241.93.32]) by cassarossa.samfundet.no with esmtp (Exim 4.34) id 1Cy7LB-0006nl-Jf for pgsql-performance@postgresql.org; Mon, 07 Feb 2005 12:46:05 +0100 Received: from sesse by trofast.sesse.net with local (Exim 3.36 #1 (Debian)) id 1Cy7LB-0007LP-00 for ; Mon, 07 Feb 2005 12:46:05 +0100 Date: Mon, 7 Feb 2005 12:46:05 +0100 From: "Steinar H. Gunderson" To: pgsql-performance@postgresql.org Subject: Re: Index not used with or condition Message-ID: <20050207114605.GB27546@uio.no> Mail-Followup-To: pgsql-performance@postgresql.org References: <2989532e05020701073638ca4c@mail.gmail.com> <2989532e0502070314402057cc@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <2989532e0502070314402057cc@mail.gmail.com> X-Operating-System: Linux 2.6.8.1 on a i686 User-Agent: Mutt/1.5.6+20040907i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200502/109 X-Sequence-Number: 10438 On Mon, Feb 07, 2005 at 04:44:07PM +0530, Antony Paul wrote: > On more investigation I found that index scan is not used if the query > have a function in it like lower() and an index exist for lower() > column. What version are you using? 8.0 had fixes for this situation. /* Steinar */ -- Homepage: http://www.sesse.net/