Re: fast case-insensitive sort

From: "Sigi Jekabsons" <sigi(dot)j(at)workskillsprofessionals(dot)com(dot)au>
To: <pgsql-sql(at)postgresql(dot)org>
Cc: "Stephan Szabo" <sszabo(at)megazone23(dot)bigpanda(dot)com>
Subject: Re: fast case-insensitive sort
Date: 2003-04-15 02:40:38
Message-ID: 005801c302f8$6600a890$7c01a8c0@microvac
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

The table 'cands' has a 'cand_id' int4 primary key, indexed and specified
unique. 'surname' is varchar(255), indexed in the manner shown on my
previous post. You're quite right, though, I just tried indexing and
sorting by a column of type text and that worked just fine, it used the
index in the order by. Why is that?

> 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 Tom Lane 2003-04-15 05:54:58 Re: fast case-insensitive sort
Previous Message Stephan Szabo 2003-04-15 02:21:45 Re: fast case-insensitive sort