Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 7D6037D8412 for ; Mon, 12 Dec 2011 12:07:40 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ra8Pe-0002lH-C4 for pgsql-general@postgresql.org; Mon, 12 Dec 2011 16:07:40 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id pBCG7J3f019623; Mon, 12 Dec 2011 11:07:19 -0500 (EST) To: "Abraham, Danny" cc: Adrian Klaver , "pgsql-general@postgresql.org" Subject: Re: sort order In-reply-to: <2C0926ABD16BB641A8E2F11A5492004229B72CA6F2@PHXCCRPRD01.adprod.bmc.com> References: <2C0926ABD16BB641A8E2F11A5492004229B72C9BE0@PHXCCRPRD01.adprod.bmc.com> <201112120752.36745.adrian.klaver@gmail.com> <2C0926ABD16BB641A8E2F11A5492004229B72CA6F2@PHXCCRPRD01.adprod.bmc.com> Comments: In-reply-to "Abraham, Danny" message dated "Mon, 12 Dec 2011 09:55:37 -0600" Date: Mon, 12 Dec 2011 11:07:19 -0500 Message-ID: <19622.1323706039@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -4.2 (----) X-Archive-Number: 201112/395 X-Sequence-Number: 183136 "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 the COLLATE clause. regards, tom lane