pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rajesh Kumar Mallah <mallah@trade-india.com>
To: Thomas Swan <tswan@olemiss.edu>
Cc: PostgResql SQL Mailing List <pgsql-sql@postgresql.org>
Subject: Re: how to get index scan at work?
Date: Fri, 19 Apr 2002 22:03:24 +0530
Message-ID: <3CC046D4.B7F972A7@trade-india.com> (raw)
References: <3CBFFB30.C9F29632@trade-india.com>
	<3CBFFE2F.7000707@olemiss.edu>

Hi Thomas,

it  did not  work  for me!

tradein_clients=> explain SELECT  email_id from email_bank where email
ILIKE 'mallah@grex.org';
NOTICE:  QUERY PLAN:
Seq Scan on email_bank  (cost=0.00..22926.16 rows=1 width=4)
EXPLAIN
tradein_clients=> explain SELECT  email_id from email_bank where email =
'mallah@grex.org';
NOTICE:  QUERY PLAN:
Index Scan using email_bank_case_insen on email_bank  (cost=0.00..4.83
rows=1 width=4)
EXPLAIN
tradein_clients=>


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=>

view thread (4+ messages)  latest in thread

Message-ID: <3CC046D4.B7F972A7@trade-india.com>
Permalink:  ../3CC046D4.B7F972A7@trade-india.com/
Also on:    postgresql.org/message-id/3CC046D4.B7F972A7@trade-india.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mallah@trade-india.com, tswan@olemiss.edu
  Subject: Re: how to get index scan at work?
  In-Reply-To: <3CC046D4.B7F972A7@trade-india.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox