Re: Strange query behavior where clause produces odd behavior on '>' query

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Dann Corbit" <DCorbit(at)connx(dot)com>
Cc: "[HACKERS]" <pgsql-hackers(at)postgresql(dot)org>, "Sherry Griffin" <sgriffin(at)connx(dot)com>
Subject: Re: Strange query behavior where clause produces odd behavior on '>' query
Date: 2008-10-31 01:34:16
Message-ID: 14901.1225416856@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Dann Corbit" <DCorbit(at)connx(dot)com> writes:
>> What encoding/locale are you using?

> Whatever the default encoding/locale is.

"Whatever" is the wrong answer here. I just finished verifying that the
sort order you're complaining about is the expected ordering in some
locales. I suggest that you take the trouble to find out.

> Are you unable to reproduce it?

Well, I see this on a Fedora machine:

$ cat foo
specd
SPECD
$ sort foo
SPECD
specd
$ LANG=en_US sort foo
specd
SPECD
$

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2008-10-31 01:37:50 Re: Sun Studio compiler warnings
Previous Message Alvaro Herrera 2008-10-31 01:34:10 Re: Sun Studio compiler warnings