Re: BUG #4328: help in creating database encoded with LATIN1 - Mailing list pgsql-bugs

From Alvaro Herrera
Subject Re: BUG #4328: help in creating database encoded with LATIN1
Date
Msg-id 20080728152221.GB14617@alvh.no-ip.org
Whole thread Raw
In response to BUG #4328: help in creating database encoded with LATIN1  ("andrew victoria" <rtz_andy@yahoo.com>)
List 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

pgsql-bugs by date:

Previous
From: "Alexandre Caneo"
Date:
Subject: RES: BUG #4322: Problems with field not updatable
Next
From: Tom Lane
Date:
Subject: Re: BUG #4329: Transaction model changed?