From: | "Abraham, Danny" <danny_abraham(at)bmc(dot)com> |
---|---|
To: | Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Cc: | "Abraham, Danny" <danny_abraham(at)bmc(dot)com> |
Subject: | Re: sort order |
Date: | 2011-12-12 15:55:37 |
Message-ID: | 2C0926ABD16BB641A8E2F11A5492004229B72CA6F2@PHXCCRPRD01.adprod.bmc.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
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.
Thanks
Danny
-----Original Message-----
From: Adrian Klaver [mailto:adrian(dot)klaver(at)gmail(dot)com]
Sent: Monday, December 12, 2011 5:53 PM
To: pgsql-general(at)postgresql(dot)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
> Should be exactly like
> Select t from test order by ascii(t).
>
> Can it be done? How?
Not after a database has been created.
For more info see:
http://www.postgresql.org/docs/9.0/interactive/locale.html
In particular LC_COLLATE.
>
> Thanks
>
> Danny
--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Joe Miller | 2011-12-12 16:03:31 | Re: PostgreSQL DBA in SPAAAAAAAACE |
Previous Message | Adrian Klaver | 2011-12-12 15:52:36 | Re: sort order |