Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 04C9F633603 for ; Tue, 12 May 2009 23:16:32 -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 00424-04 for ; Tue, 12 May 2009 23:16:29 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mail.postgresql.org (Postfix) with ESMTP id 833D16335FA for ; Tue, 12 May 2009 23:16:29 -0300 (ADT) Received: from [192.168.0.195] ([217.110.127.195]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0MKuxg-1M3v0t0KOj-000131; Tue, 12 May 2009 18:39:32 +0200 User-Agent: Microsoft-Entourage/11.4.0.080122 Date: Tue, 12 May 2009 18:39:29 +0200 Subject: Re: Distinct oddity From: Maximilian Tyrtania To: Alvaro Herrera CC: Message-ID: Thread-Topic: [SQL] Distinct oddity Thread-Index: AcnTIDgTdq91tD8TEd6KhgAjMt4/tA== In-Reply-To: <20090511143826.GB8689@alvh.no-ip.org> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Provags-ID: V01U2FsdGVkX18FOFF3S24jt3Xls6zAbhjbZOe4euzQC67Y2/+ 6pYgr1MlqPqt/V7+ZXgCsus4b2j/xt+KC+JT6ff73oNjrCHdsn PAzEVCD+sZ/QypM+POI3xpUvOPsjqVWd8nf3OQuUZuGIrhsV90 N8Q== 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/59 X-Sequence-Number: 32551 am 11.05.2009 16:38 Uhr schrieb Alvaro Herrera unter alvherre@commandprompt.com: >>>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). >> >> Wait a minute. I need to re- initdb with de_DE.UTF-8, don't I? > > Well, either that, or create a new database with Latin9 encoding. FAKDB=# CREATE DATABASE "TestLatin9" FAKDB-# WITH ENCODING='LATIN9' FAKDB-# OWNER=postgres; ERROR: encoding LATIN9 does not match server's locale de_DE DETAIL: The server's LC_CTYPE setting requires encoding UTF8. FAKDB=# Now i'm deeply confused...So do i have to re-initdb? Best, Maximilian Tyrtania