Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id 43A9C2E007D for ; Tue, 1 Apr 2008 15:11:52 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 15589-02 for ; Tue, 1 Apr 2008 15:11:42 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by developer.postgresql.org (Postfix) with ESMTP id F11112E007E for ; Tue, 1 Apr 2008 15:11:44 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m31IBghq011866; Tue, 1 Apr 2008 14:11:42 -0400 (EDT) To: arnaulist@andromeiberica.com cc: "pgsql-admin@postgresql.org >> \"pgsql-admin@postgresql.org\"" Subject: Re: ERROR: encoding LATIN9 does not match server's locale en_US In-reply-to: <47F270CA.8040407@andromeiberica.com> References: <47F270CA.8040407@andromeiberica.com> Comments: In-reply-to Arnau message dated "Tue, 01 Apr 2008 19:28:42 +0200" Date: Tue, 01 Apr 2008 14:11:42 -0400 Message-ID: <11865.1207073502@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/14 X-Sequence-Number: 28778 Arnau writes: > template1=# create database test with encoding='LATIN9'; > ERROR: encoding LATIN9 does not match server's locale en_US > DETAIL: The server's LC_CTYPE setting requires encoding LATIN1. > I've been looking into the documentation to fix this and the only way > I have found is to use initdb to recreate the cluster, Is there any > other option? Nope, sorry. If you need to change the database locale, you have to re-initdb. regards, tom lane