Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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

Alvaro Herrera                      
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group