Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 77377B5DBE0 for ; Fri, 7 Oct 2011 10:31:38 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 10685-02 for ; Fri, 7 Oct 2011 13:31:38 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id B2EB5B5DBD8 for ; Fri, 7 Oct 2011 10:31:37 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p97DVbcm076412 for ; Fri, 7 Oct 2011 13:31:37 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p97DVbed076411; Fri, 7 Oct 2011 13:31:37 GMT (envelope-from www) Date: Fri, 7 Oct 2011 13:31:37 GMT Message-Id: <201110071331.p97DVbed076411@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6244: Ordering Problem From: "Murilo Lobato" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201110/62 X-Sequence-Number: 31332 The following bug has been logged online: Bug reference: 6244 Logged by: Murilo Lobato Email address: murilo@perfilweb.com.br PostgreSQL version: 9.0.3 Operating system: Centos 5.5 Description: Ordering Problem Details: We have a clients table, and when we run a select on the table ordering by name we get unexpected results. The whitespaces on the string are not being computed, as follown: what is happening: 1 - Lucia Amaral 2 - Luci Martins What we expecting: 1 - Luci Martins 2 - Lucia Amaral Resuming, the whitespace is being ignored during the order.