Re: Fastest DB restore options

Поиск
Список
Период
Сортировка
Искать
От
Alvaro Herrera
Тема
Re: Fastest DB restore options
Дата
Msg-id
20070222181358.GM4276@alvh.no-ip.org
Ответ на
Re: Fastest DB restore options (ogjunk-pgjedan@yahoo.com)
Список
Дерево обсуждения
Re: Fastest DB restore options "Ben Trewern" <ben.trewern@mowlem.com>
ogjunk-pgjedan@yahoo.com wrote:

> >   -d MyDB --format=c --ignore-version
>  
> Don't use --ignore-version; it's a good way to shoot yourself in the foot.
> 
> OG: even when upgrading (8.0.3 -> 8.2.3)?  I'll dump with pg_dump from 8.0.3 and them import with pg_restore from the newly installed 8.2.3.  Wouldn't I *have to* use --ignore-version for that to work?

The recommended procedure is to use 8.2.3's pg_dump, not 8.0's, to
connect to the old database.  And no, you don't need --ignore-version
for that, because pg_dump knows how to talk to previous server versions.
That switch is there only for connecting to a database of a _newer_
version that pg_dump's, and it's generally problematic because sometimes
an older pg_dump doesn't know how to read the newer system catalogs.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
В списке pgsql-admin по дате отправления
От: Karthikeyan Sundaram
Дата:
Сообщение: Online archiving
От: Joshua D. Drake
Дата:
Сообщение: Re: Online archiving
FAQ