Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 9B7406339F5 for ; Wed, 13 May 2009 01:12:01 -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 22576-01 for ; Wed, 13 May 2009 01:12:00 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by mail.postgresql.org (Postfix) with ESMTP id 310396335FA for ; Wed, 13 May 2009 01:12:00 -0300 (ADT) Received: from [192.168.0.195] ([217.110.127.195]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0MKuxg-1M3wjU0UEZ-0000wH; Tue, 12 May 2009 20:29:43 +0200 User-Agent: Microsoft-Entourage/11.4.0.080122 Date: Tue, 12 May 2009 20:29:36 +0200 Subject: Re: Distinct oddity From: Maximilian Tyrtania To: Alvaro Herrera CC: Message-ID: Thread-Topic: [SQL] Distinct oddity Thread-Index: AcnTL5on2HtNDj8iEd6dnAAjMt4/tA== In-Reply-To: <20090512172357.GC4050@alvh.no-ip.org> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Provags-ID: V01U2FsdGVkX1/dbJtP3LYtB+1P8l/3lDtC19TLUoOK8tnD4I2 7wiXqeMgeMCcWOV7qNabSU2+XrVKpIQ9P5jQKQeS07i3PbQAqo Sm5fNPGbLjmTcSKOhKP3c/6mTf2+EbvLRkTjwXtM5sXwxfu/7i 9Jw== 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/60 X-Sequence-Number: 32552 am 12.05.2009 19:23 Uhr schrieb Alvaro Herrera unter alvherre@commandprompt.com: >> 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? > > Hmm, I didn't expect this. I guess I assumed de_DE was an alias for > the Latin1- or Latin9- encoded locale, but it seems your system uses it > as an alias for the UTF-8 encoded one. So my initial comment seems to > be wrong as well. Please paste the output of the "locale" command. Sputnik-Server:~ administrator$ locale LANG= LC_COLLATE="C" LC_CTYPE="C" LC_MESSAGES="C" LC_MONETARY="C" LC_NUMERIC="C" LC_TIME="C" LC_ALL="C" > What platform are you using anyway? Mac OS 10.4.11 Best, Maximilian Tyrtania