Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 12F077D8413 for ; Mon, 12 Dec 2011 11:52:54 -0400 (AST) Received: from mail-vw0-f46.google.com ([209.85.212.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ra8BR-0005yJ-JJ for pgsql-general@postgresql.org; Mon, 12 Dec 2011 15:52:54 +0000 Received: by vbbfc26 with SMTP id fc26so3839666vbb.19 for ; Mon, 12 Dec 2011 07:52:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; bh=6Bov+lzy0HeKIBexSLU9muQdvGh7yljQyV8gVB1zGuo=; b=Lqb4OtX0F1K9PoyZy773T8G0VQW321WRx8TpsDrV9uPjuB4wattuFuNdDxWec2hXtH gLChcWuoZwtISseYup9xLrvhoFcOVMYxuYFqmbiIsHb40541A7kvkelwosJmov9LWbNX Q0x/hU1xnddqG1Vap3BuZiz32VPhWz/ri/tLk= Received: by 10.182.154.66 with SMTP id vm2mr3125319obb.52.1323705161025; Mon, 12 Dec 2011 07:52:41 -0800 (PST) Received: from tucker.localnet (c-24-17-164-54.hsd1.wa.comcast.net. [24.17.164.54]) by mx.google.com with ESMTPS id xs8sm5840298obc.9.2011.12.12.07.52.39 (version=SSLv3 cipher=OTHER); Mon, 12 Dec 2011 07:52:39 -0800 (PST) From: Adrian Klaver To: pgsql-general@postgresql.org Subject: Re: sort order Date: Mon, 12 Dec 2011 07:52:36 -0800 User-Agent: KMail/1.13.5 (Linux/2.6.32-36-generic; KDE/4.4.5; i686; ; ) Cc: "Abraham, Danny" References: <2C0926ABD16BB641A8E2F11A5492004229B72C9BE0@PHXCCRPRD01.adprod.bmc.com> In-Reply-To: <2C0926ABD16BB641A8E2F11A5492004229B72C9BE0@PHXCCRPRD01.adprod.bmc.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201112120752.36745.adrian.klaver@gmail.com> X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201112/392 X-Sequence-Number: 183133 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.klaver@gmail.com