Re: lc_collate issue

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Cody Pisto <cpisto(at)rvweb(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: lc_collate issue
Date: 2007-08-24 21:52:40
Message-ID: 6263.1187992360@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Cody Pisto <cpisto(at)rvweb(dot)com> writes:
> If this is potentially a problem in postgres somewhere, point me in the
> general direction and I'm more than willing to fix it myself..

You seem not to have absorbed what I said. This *is* the correct result
according to that locale's definition of sorting. You can demonstrate
that without any use of Postgres:

[tgl(at)rh2 ~]$ cat fooey
Somethang
-SOMETHING ELSE-
Something else
[tgl(at)rh2 ~]$ LANG=C sort fooey
-SOMETHING ELSE-
Somethang
Something else
[tgl(at)rh2 ~]$ LANG=en_US sort fooey
Somethang
Something else
-SOMETHING ELSE-
[tgl(at)rh2 ~]$

If you prefer C sort ordering, run Postgres in C locale. It's as
simple as that.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Kellerer 2007-08-24 22:14:23 Re: PostgreSQL vs Firebird feature comparison finished
Previous Message Alexander Staubo 2007-08-24 21:49:35 Re: PostgreSQL vs Firebird feature comparison finished