Re: db encoding

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: db encoding
Дата
Msg-id 23834.1231179130@sss.pgh.pa.us
обсуждение исходный текст
Ответ на db encoding  ("Oliveiros Cristina" <oliveiros.cristina@marktest.pt>)
Список pgsql-novice
"Oliveiros Cristina" <oliveiros.cristina@marktest.pt> writes:
> Once a database is created , is there any easy way to change its encoding?

Nope --- you have to dump and reload into a new database created with
the correct encoding setting.

> I have several created with SQL_ASCII encoding, which I now realize is
> an encoding not very recommendable.

The problem with SQL_ASCII is that you don't really know what encoding
you've got, so even "dump and reload" may not be enough --- you may have
to fix any encoding problems that are in the data now.  I'd suggest
pg_dump into plain text format so you can massage the data easily.

            regards, tom lane

В списке pgsql-novice по дате отправления:

Предыдущее
От: "Oliveiros Cristina"
Дата:
Сообщение: db encoding
Следующее
От: "JORGE MALDONADO"
Дата:
Сообщение: VARCHAR AND TEXT DATA TYPES