Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id ABEA728C7D for ; Sat, 19 May 2012 20:11:20 -0300 (ADT) Received: from mailout-de.gmx.net ([213.165.64.23]) by makus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1SVsnv-0004rW-QV for pgsql-bugs@postgresql.org; Sat, 19 May 2012 23:11:20 +0000 Received: (qmail invoked by alias); 19 May 2012 23:11:06 -0000 Received: from a88-115-214-103.elisa-laajakaista.fi (EHLO [10.0.0.104]) [88.115.214.103] by mail.gmx.net (mp041) with SMTP; 20 May 2012 01:11:06 +0200 X-Authenticated: #495269 X-Provags-ID: V01U2FsdGVkX19gbfgncSlgDYrLl8rg3NYxiIzerxrKCUmNSvVKG1 ROi5DZyn9bXHii Message-ID: <1337469065.10292.29.camel@vanquo.pezone.net> Subject: Re: BUG #6642: Spanish collation fault From: Peter Eisentraut To: Tulio J Carrasco Cc: Alvaro Herrera , Pg Bugs Date: Sun, 20 May 2012 02:11:05 +0300 In-Reply-To: References: <1337195790-sup-2177@alvh.no-ip.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.2-1 Content-Transfer-Encoding: 8bit Mime-Version: 1.0 X-Y-GMX-Trusted: 0 X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201205/114 X-Sequence-Number: 33085 On ons, 2012-05-16 at 19:55 -0500, Tulio J Carrasco wrote: > "León", "leon", "leOn" has identical order values: none of them > weights more for Spanish collation and PG is not working according it > if PG makes a "second pass" that ignores collation and reorders by its > character value. PostgreSQL uses the operating system's C library for sorting. Since you are using Ubuntu, that is glibc for you. And a look into the glibc sources shows that ó is sorted after o, the way Álvaro has explained. If you disagree with that, you need to take it up with the glibc maintainers.