Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 9E88C6330C4 for ; Sat, 9 May 2009 23:58:50 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 23682-02 for ; Sat, 9 May 2009 23:58:48 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by mail.postgresql.org (Postfix) with ESMTP id 136E4632DA9 for ; Sat, 9 May 2009 23:58:47 -0300 (ADT) Received: from perhan.alvh.no-ip.org (190-95-20-150.bk17-dsl.surnet.cl [190.95.20.150]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id n4A36D7a016338 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 9 May 2009 20:06:20 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id E6737D4179; Sat, 9 May 2009 22:58:22 -0400 (CLT) Date: Sat, 9 May 2009 22:58:22 -0400 From: Alvaro Herrera To: Maximilian Tyrtania Cc: Tom Lane , pgsql-sql@postgresql.org Subject: Re: Distinct oddity Message-ID: <20090510025822.GD5365@alvh.no-ip.org> References: <13494.1241812363@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Sat, 09 May 2009 20:06:21 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200905/43 X-Sequence-Number: 32535 Maximilian Tyrtania wrote: > am 08.05.2009 16:55 Uhr schrieb Rob Sargent unter robsargent@rocketmail.com: > > and what locale are you running in? > > lc_collate | de_DE > | Shows the collation order locale. > lc_ctype | de_DE > | Shows the character classification and case conversion locale. > > The encoding is UTF-8. Note that the de_DE locale uses Latin9 encoding, which is incompatible with UTF8. I'd try checking if the problem is reproducible in de_DE.utf8 (you need to create a new database for testing, obviously). If it's not, then the incompatible locale definition is causing the problem. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support