Re: fast case-insensitive sort - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: fast case-insensitive sort
Date
Msg-id 20030414191817.L48398-100000@megazone23.bigpanda.com
Whole thread Raw
In response to fast case-insensitive sort  ("Sigi Jekabsons" <sigi.j@workskillsprofessionals.com.au>)
List pgsql-sql
On Tue, 15 Apr 2003, Sigi Jekabsons wrote:

> I'm having trouble getting postgres to use an index when doing an ORDER BY
> UPPER(surname), for instance. I can create an index on UPPER(surname), but
> it doesn't use it in the query - is there a better way of doing a fast case
> insensitive sort?

What's the table look like (what type is surname)?  I can get behavior
like this using a varchar, but it uses the index when the field is
declared as text.



pgsql-sql by date:

Previous
From: "Sigi Jekabsons"
Date:
Subject: fast case-insensitive sort
Next
From: "Sigi Jekabsons"
Date:
Subject: Re: fast case-insensitive sort