Re: how to get index scan at work?

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Rajesh Kumar Mallah <mallah(at)trade-india(dot)com>
Cc: Thomas Swan <tswan(at)olemiss(dot)edu>, PostgResql SQL Mailing List <pgsql-sql(at)postgresql(dot)org>
Subject: Re: how to get index scan at work?
Date: 2002-04-19 17:12:04
Message-ID: 20020419100955.A15437-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


On Fri, 19 Apr 2002, Rajesh Kumar Mallah wrote:

> btw i could not create the index the way you suggested
>
> regds
>
> tradein_clients=> CREATE UNIQUE INDEX email_bank_case_insen on
> LOWER(email_bank(email));
> ERROR: DefineIndex: relation "lower" not found
> tradein_clients=>

It actually should be:
create index email_bank_case_insen on email_bank(lower(email));

And that should allow
lower(email)='<string>'
to be indexable.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jie Liang 2002-04-19 18:32:06 Re: How to log outputs from pl/pgsql into a file ?
Previous Message Rajesh Kumar Mallah 2002-04-19 16:33:24 Re: how to get index scan at work?