From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-general(at)commandprompt(dot)com |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Question on Bizarre Sorting (ORDER BY in 7.1) |
Date: | 2001-04-25 16:29:36 |
Message-ID: | 29292.988216176@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
<pgsql-general(at)commandprompt(dot)com> writes:
> I was interested in knowing whether or not this
> is a bug, a change in the way PostgreSQL sorts, or possibly some kind of
> locale-specific misconfiguration?
There is not any (intentional) change in sorting behavior between 7.1
and earlier releases; indeed, since the sort order of text fields is
determined by libc's strcmp() or strcoll(), it would be pretty hard for
us to change it if we wanted to. My money is on a locale issue ...
although the sorting behavior you describe doesn't seem to match any
commonly used locale.
Things to try:
Check whether you built with locale and/or multibyte support (and did
you make the same choices before?).
Use the contrib/pg_controldata program to see what locale the database
is initialized in.
Run the regression tests, both "make check" (which should force C
locale) and "make runtest" (which will talk to your installed postmaster
and hence use whatever locale it's using). I'd not be surprised to get
some ordering differences in the runtest results.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-04-25 16:32:26 | Re: append all columns in where-clause |
Previous Message | Tom Lane | 2001-04-25 16:15:36 | Re: indices are crashed after installation of rpm |