From klodoma@ar-sd.net Tue Nov 25 15:03:32 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 7ACD3D1C976 for ; Tue, 25 Nov 2003 15:03:32 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 56823-08 for ; Tue, 25 Nov 2003 11:03:05 -0400 (AST) Received: from ar-sd.net (unknown [81.196.32.112]) by svr1.postgresql.org (Postfix) with ESMTP id 8D508D1DC6D for ; Tue, 25 Nov 2003 11:02:45 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by ar-sd.net (Postfix) with ESMTP id A6B8A17634 for ; Tue, 25 Nov 2003 17:06:41 +0200 (EET) Received: from andy (unknown [192.168.0.11]) by ar-sd.net (Postfix) with SMTP id 82F9817543 for ; Tue, 25 Nov 2003 17:06:41 +0200 (EET) Message-ID: <017301c3b365$70935b40$0b00a8c0@andy> From: "Andrei Bintintan" To: Subject: Sensitive sort problem? Date: Tue, 25 Nov 2003 17:04:34 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0170_01C3B376.3372CBE0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Virus-Scanned: by AMaViS snapshot-20020531 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.6 tagged_above=0.0 required=5.0 tests=HTML_30_40 X-Spam-Level: X-Archive-Number: 200311/423 X-Sequence-Number: 11410 This is a multi-part message in MIME format. ------=_NextPart_000_0170_01C3B376.3372CBE0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi to everyone,=20 I don't know exactly if i'm sending my problem in the right place, hope you= can help me.=20 I use postgresql db. 7.3.2.=20 Today I noticed that my database does not sort "case sensitive" anymore. If= I have a query like: Select name from names order by name -- the names are not resulted as they= should. 'ax' is after 'Aa' and so one.=20 I don't know since when is this problem I noticed it just now. I use Suse 8= .2 and yesterday evening I made a live update. Could this be the problem? I= restored the system and ... the problem remains.=20 I also have another linux system, there the db works fine.=20 Does anyone has any ideea???? Are there any settings for something like thi= s? Thnkx. Andy. ------=_NextPart_000_0170_01C3B376.3372CBE0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi to everyone,
 
I don't know exactly if i'm sending my pro= blem in=20 the right place, hope you can help me.
 
I use postgresql db. 7.3.2.
 
Today I noticed that my database does not = sort=20 "case sensitive" anymore. If I have a query like:
Select name from names order by name = -- the=20 names are not resulted as they should. 'ax' is after 'Aa' and so one.=20
 
I don't know since when is this problem I = noticed=20 it just now. I use Suse 8.2 and yesterday evening I made a live update. Cou= ld=20 this be the problem? I restored the system and ... the problem remains.=20
 
I also have another linux system, there th= e db=20 works fine.
 
Does anyone has any ideea???? Are there an= y=20 settings for something like this?
 
Thnkx.
Andy.
 
------=_NextPart_000_0170_01C3B376.3372CBE0-- From demolish@cwgsy.net Tue Nov 25 16:23:08 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id B7F57D1C96C for ; Tue, 25 Nov 2003 16:23:08 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 92101-01 for ; Tue, 25 Nov 2003 12:22:35 -0400 (AST) Received: from CISX-Linux4.cisx.com (unknown [213.133.202.58]) by svr1.postgresql.org (Postfix) with ESMTP id 14CD5D1D8EA for ; Tue, 25 Nov 2003 12:22:26 -0400 (AST) Received: from DEMOLITION ([192.168.100.22]) by CISX-Linux4.cisx.com (8.12.8/8.12.8) with SMTP id hAPGIhl7001080 for ; Tue, 25 Nov 2003 16:18:45 GMT Message-ID: <005701c3b370$3d09fe40$1664a8c0@DEMOLITION> From: "Donald Fraser" To: "[ADMIN]" References: <017301c3b365$70935b40$0b00a8c0@andy> Subject: Re: Sensitive sort problem? Date: Tue, 25 Nov 2003 16:21:52 -0000 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0054_01C3B370.3C0140D0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4927.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.7 tagged_above=0.0 required=5.0 tests=HTML_40_50, REFERENCES X-Spam-Level: X-Archive-Number: 200311/426 X-Sequence-Number: 11413 This is a multi-part message in MIME format. ------=_NextPart_000_0054_01C3B370.3C0140D0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable PostgreSQL 7.3.x and anything below has never had case insensitive sorting = - period. I can't speak for the new 7.4 version? If you want to add a case insensitive data type try this: http://gborg.postgresql.org/project/citext/projdisplay.php Regards Donald Fraser. ----- Original Message -----=20 From: Andrei Bintintan=20 To: pgsql-admin@postgresql.org=20 Sent: Tuesday, November 25, 2003 3:04 PM Subject: [ADMIN] Sensitive sort problem? Hi to everyone,=20 I don't know exactly if i'm sending my problem in the right place, hope y= ou can help me.=20 I use postgresql db. 7.3.2.=20 Today I noticed that my database does not sort "case sensitive" anymore. = If I have a query like: Select name from names order by name -- the names are not resulted as th= ey should. 'ax' is after 'Aa' and so one.=20 I don't know since when is this problem I noticed it just now. I use Suse= 8.2 and yesterday evening I made a live update. Could this be the problem?= I restored the system and ... the problem remains.=20 I also have another linux system, there the db works fine.=20 Does anyone has any ideea???? Are there any settings for something like t= his? Thnkx. Andy. ------=_NextPart_000_0054_01C3B370.3C0140D0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
PostgreSQL 7.3.x and anything below has ne= ver had=20 case insensitive sorting - period.
I can't speak for the new 7.4 version?
 
If you want to add a case insensitive data= type try=20 this:
http://= gborg.postgresql.org/project/citext/projdisplay.php
 
 
Regards
Donald Fraser.
----- Original Message -----
Fro= m:=20 Andrei=20 Bintintan
Sent: Tuesday, November 25, 2003 3= :04=20 PM
Subject: [ADMIN] Sensitive sort=20 problem?

Hi to everyone,
 
I don't know exactly if i'm sending my p= roblem in=20 the right place, hope you can help me.
 
I use postgresql db. 7.3.2.
 
Today I noticed that my database does no= t sort=20 "case sensitive" anymore. If I have a query like:
Select name from names order by name&nbs= p; -- the=20 names are not resulted as they should. 'ax' is after 'Aa' and so one.=20
 
I don't know since when is this problem = I noticed=20 it just now. I use Suse 8.2 and yesterday evening I made a live update. C= ould=20 this be the problem? I restored the system and ... the problem remains.= =20
 
I also have another linux system, there = the db=20 works fine.
 
Does anyone has any ideea???? Are there = any=20 settings for something like this?
 
Thnkx.
Andy.
 
------=_NextPart_000_0054_01C3B370.3C0140D0-- From tgl@sss.pgh.pa.us Tue Nov 25 16:36:51 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 7F704D1C96C for ; Tue, 25 Nov 2003 16:36:51 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 92271-05 for ; Tue, 25 Nov 2003 12:36:18 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 8CA11D1B531 for ; Tue, 25 Nov 2003 12:36:19 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id hAPGaH19028199; Tue, 25 Nov 2003 11:36:17 -0500 (EST) To: "Donald Fraser" Cc: "[ADMIN]" Subject: Re: Sensitive sort problem? In-reply-to: <005701c3b370$3d09fe40$1664a8c0@DEMOLITION> References: <017301c3b365$70935b40$0b00a8c0@andy> <005701c3b370$3d09fe40$1664a8c0@DEMOLITION> Comments: In-reply-to "Donald Fraser" message dated "Tue, 25 Nov 2003 16:21:52 +0000" Date: Tue, 25 Nov 2003 11:36:17 -0500 Message-ID: <28198.1069778177@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/427 X-Sequence-Number: 11414 "Donald Fraser" writes: > PostgreSQL 7.3.x and anything below has never had case insensitive sorting = > - period. This is incorrect. In point of fact it will depend on the locale the database is running under. I think the OP's problem is he re-initdb'd without noting what locale setting was active. regards, tom lane From andy@ar-sd.net Tue Nov 25 16:39:29 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id EC2BED1D61F for ; Tue, 25 Nov 2003 16:39:29 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 93769-02 for ; Tue, 25 Nov 2003 12:38:57 -0400 (AST) Received: from ar-sd.net (unknown [81.196.32.112]) by svr1.postgresql.org (Postfix) with ESMTP id 35C66D1D614 for ; Tue, 25 Nov 2003 12:38:57 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by ar-sd.net (Postfix) with ESMTP id 8AFD11D68C for ; Tue, 25 Nov 2003 18:43:03 +0200 (EET) Received: from andy (unknown [192.168.0.11]) by ar-sd.net (Postfix) with SMTP id 5338B1D686 for ; Tue, 25 Nov 2003 18:43:03 +0200 (EET) Message-ID: <01e301c3b372$e72d3890$0b00a8c0@andy> From: "Andrei Bintintan" To: "[ADMIN]" References: <017301c3b365$70935b40$0b00a8c0@andy> <005701c3b370$3d09fe40$1664a8c0@DEMOLITION> Subject: Re: Sensitive sort problem? Date: Tue, 25 Nov 2003 18:40:54 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_01E0_01C3B383.A872A840" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Virus-Scanned: by AMaViS snapshot-20020531 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.7 tagged_above=0.0 required=5.0 tests=HTML_40_50, REFERENCES X-Spam-Level: X-Archive-Number: 200311/450 X-Sequence-Number: 11437 This is a multi-part message in MIME format. ------=_NextPart_000_01E0_01C3B383.A872A840 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I give an example: These are the datas from the table names:=20 id n1 n2=20=20=20 1 AaAa AaAa=20=20=20 2 X X=20=20=20 3 A A=20=20=20 4 a a=20=20=20 5 ab ab=20=20=20 6 _Y _Y=20=20=20 8 ..a ..a=20=20=20 9 .x .x=20=20=20 7 ...a ...a If I run: select * from names order by n1: the result is: id n1 n2=20=20=20 4 a a=20=20=20 8 ..a ..a=20=20=20 7 ...a ...a=20=20=20 3 A A=20=20=20 1 AaAa AaAa=20=20=20 5 ab ab=20=20=20 9 .x .x=20=20=20 2 X X=20=20=20 6 _Y _Y=20=20=20 Which I don't think that is right. I don't know what happened. But I find t= hat the ASCII char order is not respected here. I have another machine on which the result is okay....I don't have a clue. Andy. ----- Original Message -----=20 From: Donald Fraser=20 To: [ADMIN]=20 Sent: Tuesday, November 25, 2003 6:21 PM Subject: Re: [ADMIN] Sensitive sort problem? PostgreSQL 7.3.x and anything below has never had case insensitive sortin= g - period. I can't speak for the new 7.4 version? =20=20=20 If you want to add a case insensitive data type try this: http://gborg.postgresql.org/project/citext/projdisplay.php =20=20=20 =20=20=20 Regards Donald Fraser. ----- Original Message -----=20 From: Andrei Bintintan=20 To: pgsql-admin@postgresql.org=20 Sent: Tuesday, November 25, 2003 3:04 PM Subject: [ADMIN] Sensitive sort problem? Hi to everyone,=20 I don't know exactly if i'm sending my problem in the right place, hope= you can help me.=20 I use postgresql db. 7.3.2.=20 Today I noticed that my database does not sort "case sensitive" anymore= . If I have a query like: Select name from names order by name -- the names are not resulted as = they should. 'ax' is after 'Aa' and so one.=20 I don't know since when is this problem I noticed it just now. I use Su= se 8.2 and yesterday evening I made a live update. Could this be the proble= m? I restored the system and ... the problem remains.=20 I also have another linux system, there the db works fine.=20 Does anyone has any ideea???? Are there any settings for something like= this? Thnkx. Andy. ------=_NextPart_000_01E0_01C3B383.A872A840 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I give an example:
 
These are the datas from the table names:= =20
 
id   n1   n2 &nbs= p;=20
1   AaAa    AaAa  =20
2    X     X  =20
3    A     A  =20
4   a    a  
5  =20 ab    ab  
6   _Y   = =20 _Y  
8   ..a    ..a  =20
9   .x    .x  
7  =20 ...a    ...a
 
If I run: select * from names= order by=20 n1: the result is:
 
id   n1   n2 &nbs= p;=20
4   a    a &= nbsp;=20
8   ..a    ..a  
7  = =20 ...a    ...a  
3   =20 A     A  
1   AaAa  &= nbsp;=20 AaAa  
5   ab    ab  =20
9   .x    .x  
2  &nbs= p;=20 X     X  
6   _Y  &nb= sp;=20 _Y  
 
Which I don't think that is right. I don't= know=20 what happened. But I find that the ASCII char order is not respected=20 here.
 
I have another machine on which the result= is=20 okay....I don't have a clue.
 
Andy.
 
 
 
----- Original Message -----
Fro= m:=20 Donald F= raser=20
To: [ADMIN]
Sent: Tuesday, November 25, 2003 6= :21=20 PM
Subject: Re: [ADMIN] Sensitive sor= t=20 problem?

PostgreSQL 7.3.x and anything below has = never had=20 case insensitive sorting - period.
I can't speak for the new 7.4=20 version?
 
If you want to add a case insensitive da= ta type=20 try this:
http:= //gborg.postgresql.org/project/citext/projdisplay.php
 
 
Regards
Donald Fraser.
----- Original Message -----
F= rom:=20 Andrei= =20 Bintintan
To: pgsql-admin@postgresql.org
Sent: Tuesday, November 25, 2003= 3:04=20 PM
Subject: [ADMIN] Sensitive sort= =20 problem?

Hi to everyone,
 
I don't know exactly if i'm sending my= problem=20 in the right place, hope you can help me.
 
I use postgresql db. 7.3.2.
 
Today I noticed that my database does = not sort=20 "case sensitive" anymore. If I have a query like:
Select name from names order by name&n= bsp; --=20 the names are not resulted as they should. 'ax' is after 'Aa' and so on= e.=20
 
I don't know since when is this proble= m I=20 noticed it just now. I use Suse 8.2 and yesterday evening I made a live= =20 update. Could this be the problem? I restored the system and ... the pr= oblem=20 remains.
 
I also have another linux system, ther= e the db=20 works fine.
 
Does anyone has any ideea???? Are ther= e any=20 settings for something like this?
 
Thnkx.
Andy.
 
------=_NextPart_000_01E0_01C3B383.A872A840-- From klodoma@ar-sd.net Tue Nov 25 16:42:09 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 772BAD1B432 for ; Tue, 25 Nov 2003 16:42:09 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 93667-03 for ; Tue, 25 Nov 2003 12:41:37 -0400 (AST) Received: from ar-sd.net (unknown [81.196.32.112]) by svr1.postgresql.org (Postfix) with ESMTP id 3AEA4D1D8B5 for ; Tue, 25 Nov 2003 12:41:36 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by ar-sd.net (Postfix) with ESMTP id 8A62E1D6E1 for ; Tue, 25 Nov 2003 18:45:42 +0200 (EET) Received: from andy (unknown [192.168.0.11]) by ar-sd.net (Postfix) with SMTP id 5BCFF1D6DD for ; Tue, 25 Nov 2003 18:45:42 +0200 (EET) Message-ID: <022a01c3b373$45fc4f00$0b00a8c0@andy> From: "Andrei Bintintan" To: "[ADMIN]" References: <017301c3b365$70935b40$0b00a8c0@andy> <005701c3b370$3d09fe40$1664a8c0@DEMOLITION> Subject: Re: Sensitive sort problem? Date: Tue, 25 Nov 2003 18:43:36 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0227_01C3B384.08C3F1E0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Virus-Scanned: by AMaViS snapshot-20020531 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.7 tagged_above=0.0 required=5.0 tests=HTML_40_50, REFERENCES X-Spam-Level: X-Archive-Number: 200311/428 X-Sequence-Number: 11415 This is a multi-part message in MIME format. ------=_NextPart_000_0227_01C3B384.08C3F1E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I give an example: These are the datas from the table names:=20 id n1 n2=20=20=20 1 AaAa AaAa=20=20=20 2 X X=20=20=20 3 A A=20=20=20 4 a a=20=20=20 5 ab ab=20=20=20 6 _Y _Y=20=20=20 8 ..a ..a=20=20=20 9 .x .x=20=20=20 7 ...a ...a If I run: select * from names order by n1: the result is: =20 id n1 n2=20=20=20 4 a a=20=20=20 8 ..a ..a=20=20=20 7 ...a ...a=20=20=20 3 A A=20=20=20 1 AaAa AaAa=20=20=20 5 ab ab=20=20=20 9 .x .x=20=20=20 2 X X=20=20=20 6 _Y _Y=20=20=20 Which I don't think that is right. I don't know what happened. But I find t= hat the ASCII char order is not respected here. I have another machine on which the result is okay....I don't have a clue. Andy. ----- Original Message -----=20 From: Donald Fraser=20 To: [ADMIN]=20 Sent: Tuesday, November 25, 2003 6:21 PM Subject: Re: [ADMIN] Sensitive sort problem? PostgreSQL 7.3.x and anything below has never had case insensitive sortin= g - period. I can't speak for the new 7.4 version? =20=20=20 If you want to add a case insensitive data type try this: http://gborg.postgresql.org/project/citext/projdisplay.php =20=20=20 =20=20=20 Regards Donald Fraser. ----- Original Message -----=20 From: Andrei Bintintan=20 To: pgsql-admin@postgresql.org=20 Sent: Tuesday, November 25, 2003 3:04 PM Subject: [ADMIN] Sensitive sort problem? Hi to everyone,=20 I don't know exactly if i'm sending my problem in the right place, hope= you can help me.=20 I use postgresql db. 7.3.2.=20 Today I noticed that my database does not sort "case sensitive" anymore= . If I have a query like: Select name from names order by name -- the names are not resulted as = they should. 'ax' is after 'Aa' and so one.=20 I don't know since when is this problem I noticed it just now. I use Su= se 8.2 and yesterday evening I made a live update. Could this be the proble= m? I restored the system and ... the problem remains.=20 I also have another linux system, there the db works fine.=20 Does anyone has any ideea???? Are there any settings for something like= this? Thnkx. Andy. ------=_NextPart_000_0227_01C3B384.08C3F1E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I give an example:
 
These are the datas from the table names:= =20
 
id   n1   n2 &nbs= p;=20
1   AaAa    AaAa  =20
2    X     X  =20
3    A     A  =20
4   a    a  
5  =20 ab    ab  
6   _Y   = =20 _Y  
8   ..a    ..a  =20
9   .x    .x  
7  =20 ...a    ...a
 
If I run: select * from names= order by=20 n1: the result is:
 
id   n1   n2 &nbs= p;=20
4   a    a &= nbsp;=20
8   ..a    ..a  
7  = =20 ...a    ...a  
3   =20 A     A  
1   AaAa  &= nbsp;=20 AaAa  
5   ab    ab  =20
9   .x    .x  
2  &nbs= p;=20 X     X  
6   _Y  &nb= sp;=20 _Y  
 
Which I don't think that is right. I don't= know=20 what happened. But I find that the ASCII char order is not respected=20 here.
 
I have another machine on which the result= is=20 okay....I don't have a clue.
 
Andy.
 
----- Original Message -----
Fro= m:=20 Donald F= raser=20
To: [ADMIN]
Sent: Tuesday, November 25, 2003 6= :21=20 PM
Subject: Re: [ADMIN] Sensitive sor= t=20 problem?

PostgreSQL 7.3.x and anything below has = never had=20 case insensitive sorting - period.
I can't speak for the new 7.4=20 version?
 
If you want to add a case insensitive da= ta type=20 try this:
http:= //gborg.postgresql.org/project/citext/projdisplay.php
 
 
Regards
Donald Fraser.
----- Original Message -----
F= rom:=20 Andrei= =20 Bintintan
To: pgsql-admin@postgresql.org
Sent: Tuesday, November 25, 2003= 3:04=20 PM
Subject: [ADMIN] Sensitive sort= =20 problem?

Hi to everyone,
 
I don't know exactly if i'm sending my= problem=20 in the right place, hope you can help me.
 
I use postgresql db. 7.3.2.
 
Today I noticed that my database does = not sort=20 "case sensitive" anymore. If I have a query like:
Select name from names order by name&n= bsp; --=20 the names are not resulted as they should. 'ax' is after 'Aa' and so on= e.=20
 
I don't know since when is this proble= m I=20 noticed it just now. I use Suse 8.2 and yesterday evening I made a live= =20 update. Could this be the problem? I restored the system and ... the pr= oblem=20 remains.
 
I also have another linux system, ther= e the db=20 works fine.
 
Does anyone has any ideea???? Are ther= e any=20 settings for something like this?
 
Thnkx.
Andy.
 
------=_NextPart_000_0227_01C3B384.08C3F1E0-- From demolish@cwgsy.net Tue Nov 25 17:53:17 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 00F5ED1B443 for ; Tue, 25 Nov 2003 17:53:17 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 08758-01 for ; Tue, 25 Nov 2003 13:52:45 -0400 (AST) Received: from CISX-Linux4.cisx.com (unknown [213.133.202.58]) by svr1.postgresql.org (Postfix) with ESMTP id 07C4CD1B435 for ; Tue, 25 Nov 2003 13:52:44 -0400 (AST) Received: from DEMOLITION ([192.168.100.22]) by CISX-Linux4.cisx.com (8.12.8/8.12.8) with SMTP id hAPHnIl7001436 for ; Tue, 25 Nov 2003 17:49:18 GMT Message-ID: <007001c3b37c$e426a3c0$1664a8c0@DEMOLITION> From: "Donald Fraser" To: "[ADMIN]" References: <017301c3b365$70935b40$0b00a8c0@andy> <005701c3b370$3d09fe40$1664a8c0@DEMOLITION> <28198.1069778177@sss.pgh.pa.us> Subject: Re: Sensitive sort problem? Date: Tue, 25 Nov 2003 17:52:26 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4927.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/434 X-Sequence-Number: 11421 ----- Original Message ----- > "Donald Fraser" writes: > > PostgreSQL 7.3.x and anything below has never had case insensitive sorting = > > - period. > > This is incorrect. In point of fact it will depend on the locale the > database is running under. I think the OP's problem is he re-initdb'd > without noting what locale setting was active. Correction noted. I over-looked the fact that a local setting can provide different collation ordering. Out of interest, which local settings will give a case-insensitive collation order? Regards Donald Fraser From sszabo@megazone.bigpanda.com Tue Nov 25 17:54:05 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 77FA3D1B454 for ; Tue, 25 Nov 2003 17:54:05 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 08813-01 for ; Tue, 25 Nov 2003 13:53:33 -0400 (AST) Received: from megazone.bigpanda.com (megazone.bigpanda.com [64.147.171.210]) by svr1.postgresql.org (Postfix) with ESMTP id 44328D1B443 for ; Tue, 25 Nov 2003 13:53:33 -0400 (AST) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 2CD643561C; Tue, 25 Nov 2003 09:53:33 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 2B5CA354A9; Tue, 25 Nov 2003 09:53:33 -0800 (PST) Date: Tue, 25 Nov 2003 09:53:33 -0800 (PST) From: Stephan Szabo To: Andrei Bintintan Cc: "[ADMIN]" Subject: Re: Sensitive sort problem? In-Reply-To: <022a01c3b373$45fc4f00$0b00a8c0@andy> Message-ID: <20031125095150.J20420@megazone.bigpanda.com> References: <017301c3b365$70935b40$0b00a8c0@andy> <005701c3b370$3d09fe40$1664a8c0@DEMOLITION> <022a01c3b373$45fc4f00$0b00a8c0@andy> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/435 X-Sequence-Number: 11422 On Tue, 25 Nov 2003, Andrei Bintintan wrote: > I give an example: > > These are the datas from the table names: > > id n1 n2 > 1 AaAa AaAa > 2 X X > 3 A A > 4 a a > 5 ab ab > 6 _Y _Y > 8 ..a ..a > 9 .x .x > 7 ...a ...a > > If I run: select * from names order by n1: the result is: > > id n1 n2 > 4 a a > 8 ..a ..a > 7 ...a ...a > 3 A A > 1 AaAa AaAa > 5 ab ab > 9 .x .x > 2 X X > 6 _Y _Y > > Which I don't think that is right. I don't know what happened. But I > find that the ASCII char order is not respected here. As Tom said, you've probably run initdb in a locale other than "C". For example, I believe the above is correct for en_US. From andy@ar-sd.net Wed Nov 26 07:14:08 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id D93AED1B439 for ; Wed, 26 Nov 2003 07:14:08 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 03163-03 for ; Wed, 26 Nov 2003 03:13:38 -0400 (AST) Received: from ar-sd.net (unknown [81.196.32.112]) by svr1.postgresql.org (Postfix) with ESMTP id A2A2ED1B434 for ; Wed, 26 Nov 2003 03:13:36 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by ar-sd.net (Postfix) with ESMTP id B68D717C83; Wed, 26 Nov 2003 09:17:40 +0200 (EET) Received: from andy (unknown [192.168.0.11]) by ar-sd.net (Postfix) with SMTP id 910AB173A4; Wed, 26 Nov 2003 09:17:40 +0200 (EET) Message-ID: <003801c3b3ed$18d6feb0$0b00a8c0@andy> From: "Andrei Bintintan" To: "Stephan Szabo" Cc: "[ADMIN]" References: <017301c3b365$70935b40$0b00a8c0@andy> <005701c3b370$3d09fe40$1664a8c0@DEMOLITION> <022a01c3b373$45fc4f00$0b00a8c0@andy> <20031125095150.J20420@megazone.bigpanda.com> Subject: Re: Sensitive sort problem? Date: Wed, 26 Nov 2003 09:15:38 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Virus-Scanned: by AMaViS snapshot-20020531 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/451 X-Sequence-Number: 11438 The db was initialized for 4 months. And in rest I did nothing regarding the initialization. I solved the problem by delete/reinit the database. I really don't know what caused this. A day before I noticed the problem I made a "live update" for suse 8.2. I will look also the log files, maybe I find there something. If I found something "strange" I post it. Thankx to all. ----- Original Message ----- From: "Stephan Szabo" To: "Andrei Bintintan" Cc: "[ADMIN]" Sent: Tuesday, November 25, 2003 7:53 PM Subject: Re: [ADMIN] Sensitive sort problem? > On Tue, 25 Nov 2003, Andrei Bintintan wrote: > > > I give an example: > > > > These are the datas from the table names: > > > > id n1 n2 > > 1 AaAa AaAa > > 2 X X > > 3 A A > > 4 a a > > 5 ab ab > > 6 _Y _Y > > 8 ..a ..a > > 9 .x .x > > 7 ...a ...a > > > > If I run: select * from names order by n1: the result is: > > > > id n1 n2 > > 4 a a > > 8 ..a ..a > > 7 ...a ...a > > 3 A A > > 1 AaAa AaAa > > 5 ab ab > > 9 .x .x > > 2 X X > > 6 _Y _Y > > > > Which I don't think that is right. I don't know what happened. But I > > find that the ASCII char order is not respected here. > > As Tom said, you've probably run initdb in a locale other than "C". > For example, I believe the above is correct for en_US. From klodoma@ar-sd.net Wed Nov 26 07:16:41 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 128EDD1B439 for ; Wed, 26 Nov 2003 07:16:41 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 01661-06 for ; Wed, 26 Nov 2003 03:16:11 -0400 (AST) Received: from ar-sd.net (unknown [81.196.32.112]) by svr1.postgresql.org (Postfix) with ESMTP id 2DF68D1B434 for ; Wed, 26 Nov 2003 03:16:10 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by ar-sd.net (Postfix) with ESMTP id F0D461C34D; Wed, 26 Nov 2003 09:20:14 +0200 (EET) Received: from andy (unknown [192.168.0.11]) by ar-sd.net (Postfix) with SMTP id D17EF173A4; Wed, 26 Nov 2003 09:20:14 +0200 (EET) Message-ID: <007901c3b3ed$74ced940$0b00a8c0@andy> From: "Andrei Bintintan" To: "Stephan Szabo" Cc: "[ADMIN]" References: <017301c3b365$70935b40$0b00a8c0@andy> <005701c3b370$3d09fe40$1664a8c0@DEMOLITION> <022a01c3b373$45fc4f00$0b00a8c0@andy> <20031125095150.J20420@megazone.bigpanda.com> Subject: Re: Sensitive sort problem? Date: Wed, 26 Nov 2003 09:18:13 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Virus-Scanned: by AMaViS snapshot-20020531 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/442 X-Sequence-Number: 11429 The db was initialized for 4 months. And in rest I did nothing regarding the initialization. I solved the problem by delete/reinit the database. I really don't know what caused this. A day before I noticed the problem I made a "live update" for suse 8.2. I will look also the log files, maybe I find there something. If I found something "strange" I post it. Thankx to all. ----- Original Message ----- From: "Stephan Szabo" To: "Andrei Bintintan" Cc: "[ADMIN]" Sent: Tuesday, November 25, 2003 7:53 PM Subject: Re: [ADMIN] Sensitive sort problem? > On Tue, 25 Nov 2003, Andrei Bintintan wrote: > > > I give an example: > > > > These are the datas from the table names: > > > > id n1 n2 > > 1 AaAa AaAa > > 2 X X > > 3 A A > > 4 a a > > 5 ab ab > > 6 _Y _Y > > 8 ..a ..a > > 9 .x .x > > 7 ...a ...a > > > > If I run: select * from names order by n1: the result is: > > > > id n1 n2 > > 4 a a > > 8 ..a ..a > > 7 ...a ...a > > 3 A A > > 1 AaAa AaAa > > 5 ab ab > > 9 .x .x > > 2 X X > > 6 _Y _Y > > > > Which I don't think that is right. I don't know what happened. But I > > find that the ASCII char order is not respected here. > > As Tom said, you've probably run initdb in a locale other than "C". > For example, I believe the above is correct for en_US.