Re: [GENERAL] sort order

2011-12-12 Thread Abraham, Danny
neral@postgresql.org Subject: Re: [GENERAL] sort order "Abraham, Danny" writes: > This is exactly what I am trying to do - > To find a CREATE DATABASE statement that will produce a database that has a > binary sorting. Setting its LC_COLLATE to "C" ought to do th

Re: [GENERAL] sort order

2011-12-12 Thread Adrian Klaver
On Monday, December 12, 2011 7:55:37 am Abraham, Danny wrote: > This is exactly what I am trying to do - > To find a CREATE DATABASE statement that will produce a database that has a > binary sorting. http://www.postgresql.org/docs/9.0/interactive/sql-createdatabase.html CREATE DATABASE name [

Re: [GENERAL] sort order

2011-12-12 Thread Tom Lane
"Abraham, Danny" writes: > This is exactly what I am trying to do - > To find a CREATE DATABASE statement that will produce a database that has a > binary sorting. Setting its LC_COLLATE to "C" ought to do that. BTW, as of 9.1 you can control this at finer granularity than database level, see t

Re: [GENERAL] sort order

2011-12-12 Thread Abraham, Danny
@postgresql.org Cc: Abraham, Danny Subject: Re: [GENERAL] sort order On Sunday, December 11, 2011 8:17:41 am Abraham, Danny wrote: > On PG 9.0.4, Windows, Encoding and Collate WIN1252 trying to get a > database to sort according to the ascii order. Example: > Select t from test order by t &g

Re: [GENERAL] sort order

2011-12-12 Thread Adrian Klaver
On Sunday, December 11, 2011 8:17:41 am Abraham, Danny wrote: > On PG 9.0.4, Windows, Encoding and Collate WIN1252 trying to get a > database to sort according to the ascii order. Example: > Select t from test order by t > Should be exactly like > Select t from test order by ascii(t). > > Can it

[GENERAL] sort order

2011-12-11 Thread Abraham, Danny
On PG 9.0.4, Windows, Encoding and Collate WIN1252 trying to get a database to sort according to the ascii order. Example: Select t from test order by t Should be exactly like Select t from test order by ascii(t). Can it be done? How? Thanks Danny

[GENERAL] sort order problem

2001-02-22 Thread MarcinInkielmanmarn
hi! could somebody tell me where is the problem? i have postgres 7.0.3-4 comming with unstable debian distribution (locales 2.2.1-1, libc6 2.2.1-1) i am unable to force postgres to sort in correct order when I have national characters (polish) I tried differents locales settings (i thik that L