Re: BUG #4328: help in creating database encoded with LATIN1

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: andrew victoria <rtz_andy(at)yahoo(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4328: help in creating database encoded with LATIN1
Date: 2008-07-28 15:22:21
Message-ID: 20080728152221.GB14617@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

andrew victoria wrote:

> i got an error message
> createdb: database creation failed: ERROR: encoding LATIN1 does not match
> server's locale en_US.utf8
> DETAIL: The server's LC_CTYPE setting requires encoding UTF8.
>
> when im trying to create a database encoded with LATIN1 which is needed in
> our work. what will i do?

You need to run initdb again, specifying --locale=en_US. You can't
create a database whose encoding does not match the locale used by
initdb.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2008-07-28 16:10:09 Re: BUG #4329: Transaction model changed?
Previous Message Alexandre Caneo 2008-07-28 11:54:10 RES: BUG #4322: Problems with field not updatable