Re: Something like pg_dump for 7.4

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Something like pg_dump for 7.4
Дата
Msg-id 5528.1140157175@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Something like pg_dump for 7.4  ("Gregory S. Williamson" <gsw@globexplorer.com>)
Список pgsql-admin
"Gregory S. Williamson" <gsw@globexplorer.com> writes:
> I am trying to migrate a modest sized database (the unload file is just under a gigabyte) which is moderately
complex,using schemas and the like from 7.4 to 8.1 
> Alas, pg_dump appears to incompatable with my needs as it keeps introducing invalid UTF-8 characters.

It's quite unlikely that pg_dump is at fault.  Rather the data you are
dumping is probably wrong.  There were some errors in pre-8.1 versions
that caused them to accept byte sequences that are not actually legal
UTF8 strings.  8.1 has tightened up that code and so will reject data
that 7.4 thought was legal.

Check the archives for some previous discussions about reasonable ways
to fix bad data --- I seem to recall iconv being mentioned as one
possible filter for your dump file.

> Is there any way to do this ? I can't edit the resulting dump file by hand -- it's huge. And pg_dump on 7.4 does not
knowhow to a table inside a schema -- it seems to be all or nothing. 

You could use the 8.1 pg_dump against the 7.4 server if you need more
flexibility.

            regards, tom lane

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

Предыдущее
От: "Gregory S. Williamson"
Дата:
Сообщение: Something like pg_dump for 7.4
Следующее
От: Artur Pietruk
Дата:
Сообщение: Re: Something like pg_dump for 7.4