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

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: BUG #4328: help in creating database encoded with LATIN1
Дата
Msg-id 20080728152221.GB14617@alvh.no-ip.org
обсуждение исходный текст
Ответ на BUG #4328: help in creating database encoded with LATIN1  ("andrew victoria" <rtz_andy@yahoo.com>)
Список 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 по дате отправления:

Предыдущее
От: "Alexandre Caneo"
Дата:
Сообщение: RES: BUG #4322: Problems with field not updatable
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #4329: Transaction model changed?