| От | CAJ CAJ |
|---|---|
| Тема | Re: PostgreSQL upgrade server A -> server B |
| Дата | |
| Msg-id | 467669b30704261834o5ad4c057ua903673d2aed2097@mail.gmail.com обсуждение |
| Ответ на | Re: PostgreSQL upgrade server A -> server B (Michael Glaesemann <grzm@seespotcode.net>) |
| Список | pgsql-general |
> Upgrading large postgres databases (100GB+) takes awfully long time
> when doing dump/restore. I was wondering if this process can be
> optimized by directly dumping to a new version of Pg database
> directly on another server without having to dump to the filesystem
> and then restore it.
From the fine documentation in the section entitled "Migration
Between Releases"
http://www.postgresql.org/docs/8.2/interactive/migration.html
> The least downtime can be achieved by installing the new server in
> a different directory and running both the old and the new servers
> in parallel, on different ports. Then you can use something like
>
> pg_dumpall -p 5432 | psql -d postgres -p 6543
>
> to transfer your data.
Hope that helps.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера