Re: Case insensitive selects?

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: David Wheeler <david(at)wheeler(dot)net>
Cc: Michael Fork <mfork(at)toledolink(dot)com>, Anand Raman <araman(at)india-today(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Case insensitive selects?
Date: 2001-02-16 20:14:22
Message-ID: 200102162014.PAA29900@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On Fri, 16 Feb 2001, Bruce Momjian wrote:
>
> > Yes, our CREATE INDEX lower(col) already does that, but you do have to
> > use lower(col) when doing the query.
>
> Right, that's what I'm suggesting a configuration that automates the
> lower(col) bit in CREATE INDEX and that automates the lower(col) in
> queries.
>
> BTW, I've run into some snags with CREATE INDEX lower(col). First it
> wouldn't work because my col was varchar (fixec by creating a new
> function) and then because I tried to combine columns:
>
> CREATE UNIQUE INDEX idx_name ON server(lower(col1), col2);

Ewe, that is a tough one. We don't support multi-column functional
indexes, do we?

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Wheeler 2001-02-16 20:23:03 Re: Case insensitive selects?
Previous Message Michael Fork 2001-02-16 20:11:32 Re: Case insensitive selects?