Re: Order by and strings

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Fredric Fredricson <Fredric(dot)Fredricson(at)bonetmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Order by and strings
Date: 2010-02-09 11:37:08
Message-ID: 9837222c1002090337w56f816eao79fddb09687ea233@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Feb 9, 2010 at 11:21, Fredric Fredricson
<Fredric(dot)Fredricson(at)bonetmail(dot)com> wrote:
> Scott Marlowe wrote:
>
> On Tue, Feb 9, 2010 at 1:42 AM, Fredric Fredricson
> <Fredric(dot)Fredricson(at)bonetmail(dot)com> wrote:
>
>
> I use locale en_US.UTF-8 but why this should affect how leading characters
> in strings are ignored is beyond me.
>
>
> P.s. this page may shed some light on the subject:
>
> http://en.wikipedia.org/wiki/Collation
>
> OK, thanks. It did shed some light on the subject. Only I wonder what would
> happen if these sort algorithms where used on things like article numbers in
> the industry. That would confuse the hell out of the people there.

In case you are storing something like that, you may be better off
using bytea instead of text.

--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2010-02-09 11:38:07 Re: dynamic plpgsql command on a record type
Previous Message Richard Huxton 2010-02-09 11:31:38 Re: string reverse fucntion?