Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 9BF0D1698D03 for ; Mon, 14 May 2012 20:00:29 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SU4Ff-0005MX-IQ for pgsql-sql@postgresql.org; Mon, 14 May 2012 23:00:28 +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 q4EN0Ado023054; Mon, 14 May 2012 19:00:10 -0400 (EDT) To: Wes James cc: pgsql-sql@postgresql.org Subject: Re: order by different on mac vs linux In-reply-to: References: Comments: In-reply-to Wes James message dated "Mon, 14 May 2012 16:42:05 -0600" Date: Mon, 14 May 2012 19:00:10 -0400 Message-ID: <23053.1337036410@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201205/35 X-Sequence-Number: 36583 Wes James writes: > Why is there a different order on the different platforms. This is not exactly unusual. You should first check to see if lc_collate is set differently in the two installations --- but even if it's the same, there are often platform-specific interpretations of the sorting rules. (Not to mention that OS X is flat out broken when it comes to sorting UTF8 data ...) If you want consistent cross-platform results, "C" locale will get that for you, but it's pretty stupid about non-ASCII characters. For more info read http://www.postgresql.org/docs/9.1/static/charset.html regards, tom lane