Re: Proposed TODO: --encoding option for pg_dump

Поиск
Список
Период
Сортировка
От laser
Тема Re: Proposed TODO: --encoding option for pg_dump
Дата
Msg-id 42C231E6.2000803@toping.com.cn
обсуждение исходный текст
Ответ на Re: Proposed TODO: --encoding option for pg_dump  ("Magnus Hagander" <mha@sollentuna.net>)
Список pgsql-hackers
I support to add the option, for I've been seeing too many of
our client got 'bad' dump just because they don't set PGCLIENTENCODING
correctly, (mostly because they use UTF8 as database encoding
but use some other encoding, like GBK as client encoding, but some
words break the autoconversion at present version and set
PGCLIENTENCODING to UTF8 would fix the problem).
Adding such a switch would remind DBAs there exists some encoding
conversion. In fact, I even think that we should use database encoding
to dump data regardless the PGCLIENTENCODING setting (unless
the user set the --encoding switch explicit), but I think
that might be break someone's application somewhere. :(

regards laser


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

Предыдущее
От: Robert Treat
Дата:
Сообщение: Re: Implementing SQL/PSM for PG 8.2 - debugger
Следующее
От: Mark Dilger
Дата:
Сообщение: Re: [GENERAL] Avoiding io penalty when updating large objects