Re: Vá: [BUGS] Bug #519: Bug in order b

Lists: pgsql-bugs
From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Sandor(dot)Vig(at)audi(dot)hu
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Vá: [BUGS] Bug #519: Bug in order by clausule
Date: 2001-11-26 14:52:00
Message-ID: 12439.1006786320@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

Sandor(dot)Vig(at)audi(dot)hu writes:
> As you see ONLY the 00000000000000CS ID is missplaced,
> the others are in correct sequence! This isn't a locale specific
> sort order. (I have RED HAT 7.1, with Hungarian settings,

Still looks like locale to me. Exactly what LANG or LC_xxx settings
are you using for the postmaster?

regards, tom lane


From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <Sandor(dot)Vig(at)audi(dot)hu>, <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Vá: [BUGS] Bug #519: Bug in order b
Date: 2001-11-26 15:42:14
Message-ID: 20011126073655.N10603-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

On Mon, 26 Nov 2001, Tom Lane wrote:

> Sandor(dot)Vig(at)audi(dot)hu writes:
> > As you see ONLY the 00000000000000CS ID is missplaced,
> > the others are in correct sequence! This isn't a locale specific
> > sort order. (I have RED HAT 7.1, with Hungarian settings,
>
> Still looks like locale to me. Exactly what LANG or LC_xxx settings
> are you using for the postmaster?

As a note, using a test program with LC_COLLATE=hu_HU, I get the
following strcoll values. ( I'm sort of assuming that hu_HU would
be the default setting for Hungary ;) )

CS <=> CY = 1
CS <=> CZ = -1

That seems to imply that for hu_HU CSs collation value is between
CY and CZ.


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
Cc: Sandor(dot)Vig(at)audi(dot)hu, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Vá: [BUGS] Bug #519: Bug in order by clausule
Date: 2001-11-26 22:21:34
Message-ID: 15438.1006813294@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> writes:
> As a note, using a test program with LC_COLLATE=hu_HU, I get the
> following strcoll values. ( I'm sort of assuming that hu_HU would
> be the default setting for Hungary ;) )

On HPUX 10.20, I get these results:

$ cat hudata
00000000000000CP
00000000000000CQ
00000000000000CR
00000000000000CT
00000000000000CU
00000000000000CV
00000000000000CW
00000000000000CX
00000000000000CY
00000000000000CS
00000000000000CZ
00000000000000D0
00000000000000D1
00000000000000D2
00000000000000D3
$ LANG='C' sort hudata
00000000000000CP
00000000000000CQ
00000000000000CR
00000000000000CS
00000000000000CT
00000000000000CU
00000000000000CV
00000000000000CW
00000000000000CX
00000000000000CY
00000000000000CZ
00000000000000D0
00000000000000D1
00000000000000D2
00000000000000D3
$ LANG='hu_HU.iso88592' sort hudata
00000000000000CP
00000000000000CQ
00000000000000CR
00000000000000CT
00000000000000CU
00000000000000CV
00000000000000CW
00000000000000CX
00000000000000CY
00000000000000CZ
00000000000000CS
00000000000000D0
00000000000000D1
00000000000000D2
00000000000000D3

(HPUX is picky about locale names... 'hu_HU' doesn't work...)

This doesn't seem to entirely square with the results you two get,
but it sure does look like "CS" sorts in non-ASCII order in HU locale.

regards, tom lane


From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <Sandor(dot)Vig(at)audi(dot)hu>, <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Vá: [BUGS] Bug #519: Bug in order b
Date: 2001-11-26 23:23:18
Message-ID: 20011126151828.Q13754-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

On Mon, 26 Nov 2001, Tom Lane wrote:

> (HPUX is picky about locale names... 'hu_HU' doesn't work...)

> This doesn't seem to entirely square with the results you two get,
> but it sure does look like "CS" sorts in non-ASCII order in HU locale.

I tried it with the full locale name you used and sort with that data and
still got the same result as I did before (CY/CS/CZ) which seems odd that
it's different, but it's on a Debian box which I'd guess should be pretty
similar to the Red Hat machine of the original complaintant (sp?).