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 F319B9FA999 for ; Fri, 5 May 2006 14:48:14 -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 81548-06 for ; Fri, 5 May 2006 14:48:06 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.228]) by postgresql.org (Postfix) with ESMTP id 538709FA3A3 for ; Fri, 5 May 2006 14:48:06 -0300 (ADT) Received: by wr-out-0506.google.com with SMTP id 70so628554wra for ; Fri, 05 May 2006 10:48:05 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=INcPpHWmalwRqhPXqh8Y/YBhEKzQcSJtR0wbVLyeBA2ENbahQBeJz5n+ZiNAOo17RQBL9DfRhe6J6TGfVW6cRyoEeD9yxPouia2k0gL8MQGIsZHNoy5mTmowByMzK7WvXh68i/B2/zp7Odo+6SYTIz64ZwSAs1DuiZly7q2SLlo= Received: by 10.65.107.11 with SMTP id j11mr135164qbm; Fri, 05 May 2006 10:48:05 -0700 (PDT) Received: by 10.65.84.5 with HTTP; Fri, 5 May 2006 10:48:05 -0700 (PDT) Message-ID: <194f62550605051048n6cadb63fl3272085ded3d95f1@mail.gmail.com> Date: Fri, 5 May 2006 19:48:05 +0200 From: "Clemens Eisserer" To: pgsql-jdbc@postgresql.org Subject: Does Lower make indexes useless? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/11 X-Sequence-Number: 15139 Hi, I am using queries very often which look like "... WHERE LOWER(field)=3D'..';" 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? Thank you in advance, lg Clemens