Re: fast case-insensitive sort

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Sigi Jekabsons <sigi(dot)j(at)workskillsprofessionals(dot)com(dot)au>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: fast case-insensitive sort
Date: 2003-04-15 02:21:45
Message-ID: 20030414191817.L48398-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Sigi Jekabsons 2003-04-15 02:40:38 Re: fast case-insensitive sort
Previous Message Sigi Jekabsons 2003-04-15 00:49:23 fast case-insensitive sort