Re: [PATCHES] client_encoding in dump file

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCHES] client_encoding in dump file
Дата
Msg-id 24153.1076542149@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCHES] client_encoding in dump file  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: [PATCHES] client_encoding in dump file  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Pavel Stehule wrote:
>> I send my first patch for PostgreSQL - maybe ugly patch. This patch 
>> generate on top of dump file line with setting of current encoding. Its 
>> useful for languages like czech with more than one wide used encoding.
>> We need informations about used encoding. 

> I found this patch intersting.  How do we deal with restoring a database
> with a different encoding from the one dumped.  Does having SET at the
> top help?  (Also, we use diff -c.)

Yes, the SET should help; it will result in character encoding
translation to whatever the database encoding is.  This has been
discussed before, IIRC.

I was planning to commit this patch (perhaps after cleanup, haven't
looked at it yet) but it's not got to the top of the todo queue...
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [BUGS] Bug in pg_autovacuum ?
Следующее
От: Gavin Sherry
Дата:
Сообщение: Re: SET WITHOUT OIDS and VACUUM badness?