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 D45ED8B9B39 for ; Mon, 7 Feb 2005 11:57:25 +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 45883-10 for ; Mon, 7 Feb 2005 11:57:13 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.194]) by svr1.postgresql.org (Postfix) with ESMTP id 75B908B9DFA for ; Mon, 7 Feb 2005 11:57:15 +0000 (GMT) Received: by wproxy.gmail.com with SMTP id 71so875246wra for ; Mon, 07 Feb 2005 03:57:14 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=hr1+q4omysb+I61lydiPm7j1/jR1bTJ1xcyT2LW+5rIlMdWGa+Nkak5zOTbWi4ma0R6zSK7uK1SPYKw+9OyZ2XLxBMXfZnGIjM4TetSOOgePtVDo1THGNxpu3FeL2mt2W0ErFZq8i9+3iCKlQQCbNvOR77iJDgId4WnhhyP3qbY= Received: by 10.54.32.42 with SMTP id f42mr453439wrf; Mon, 07 Feb 2005 03:57:13 -0800 (PST) Received: by 10.54.31.32 with HTTP; Mon, 7 Feb 2005 03:57:13 -0800 (PST) Message-ID: <2989532e050207035716306f36@mail.gmail.com> Date: Mon, 7 Feb 2005 17:27:13 +0530 From: Antony Paul Reply-To: Antony Paul To: pgsql-performance@postgresql.org Subject: Re: Index not used with or condition In-Reply-To: <20050207114605.GB27546@uio.no> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <2989532e05020701073638ca4c@mail.gmail.com> <2989532e0502070314402057cc@mail.gmail.com> <20050207114605.GB27546@uio.no> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.54 tagged_above=0 required=5 tests=FROM_ENDS_IN_NUMS, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200502/111 X-Sequence-Number: 10440 Sorry I forgot to mention it. I am using 7.3.3. I will try it in 8.0.0 rgds Antony Paul On Mon, 7 Feb 2005 12:46:05 +0100, Steinar H. Gunderson wrote: > 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/ > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) >