Re: Case sensitive order by

From: Deepak Joglekar <deepak(dot)joglekar(at)nebula-soft(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Case sensitive order by
Date: 2003-04-14 02:17:54
Message-ID: 1050286674.1411.7.camel@joglekar.dhs.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

On Sat, 2003-04-12 at 02:24, Tom Lane wrote:
> Deepak Joglekar <deepak(dot)joglekar(at)nebula-soft(dot)com> writes:
> > I want to do case sensitve sorting on a varchar field.
>
> > That is I will have strings in the varchar field which will have
> > character from ascii(32) to ascii(255). I want sort result by ascii
> > values.
>
> If you want a straight-ASCII sort without any funny locale sort rules,
> you need to be careful to initdb in C locale.
>
initdb -D /path-to-data --locale=C
It works the way I want ( pure ascii sort ). Thanks a lot.

I want to know is there any way to choose what type of sort to use
during query. i.e sort based on EN_US, or C.

Best regards.

Deepak Joglekar

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-04-14 03:15:21 Re: Index/Seq Scan Problem
Previous Message Chris Cox 2003-04-14 02:10:30 Re: Index/Seq Scan Problem