Re: sort order - Mailing list pgsql-general

From Abraham, Danny
Subject Re: sort order
Date
Msg-id 2C0926ABD16BB641A8E2F11A5492004229B72CA742@PHXCCRPRD01.adprod.bmc.com
Whole thread Raw
In response to Re: sort order  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Thanks a lot.

Worked fine with .....

CREATE DATABASE danny
Template template0
LC_CTYPE = 'C'
LC_COLLATE = 'C';

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Monday, December 12, 2011 6:07 PM
To: Abraham, Danny
Cc: Adrian Klaver; pgsql-general@postgresql.org
Subject: Re: [GENERAL] sort order

"Abraham, Danny" <danny_abraham@bmc.com> 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 the COLLATE clause.

            regards, tom lane


pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: sort order
Next
From: "Sogard, Michael (DPS)"
Date:
Subject: Re: Having Issue Getting the Postgresql Service to Start