X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 93F1B9FA4DE for ; Fri, 5 May 2006 14:54:55 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 84616-01 for ; Fri, 5 May 2006 14:54:44 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by postgresql.org (Postfix) with SMTP id E74349FA3A3 for ; Fri, 5 May 2006 14:54:41 -0300 (ADT) Received: (qmail 23295 invoked by uid 1112); 5 May 2006 17:54:32 -0000 Date: Fri, 5 May 2006 12:54:32 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary2.csoft.net To: Clemens Eisserer cc: pgsql-jdbc@postgresql.org Subject: Re: Does Lower make indexes useless? In-Reply-To: <194f62550605051048n6cadb63fl3272085ded3d95f1@mail.gmail.com> Message-ID: References: <194f62550605051048n6cadb63fl3272085ded3d95f1@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/12 X-Sequence-Number: 15140 On Fri, 5 May 2006, Clemens Eisserer wrote: > I am using queries very often which look like "... WHERE > LOWER(field)='..';" to allow case-insensitive search on varchar > columns. > > Does this make indexes useless or are there algorythmns which allow > using indexes even in this case? > Are there ways how this could be done in a better way? > This question has nothing to do with Java or JDBC, so this isn't the right list. You should try -novice or -general. http://www.postgresql.org/docs/8.1/static/indexes-expressional.html Kris Jurka