Re: Restoration of datas

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Restoration of datas
Дата
Msg-id 489BFC42.8040603@archonet.com
обсуждение исходный текст
Ответ на Restoration of datas  (dforums <dforums@vieonet.com>)
Список pgsql-performance
dforums wrote:
> COuld you advice me on which restoration method is the faster. To
> upgrade from postgresql 8.1.11 to 8.3.3.

Using the pg_dump from your 8.3 package, dump the database using -Fc to
get a nicely compressed dump. Then use pg_restore to restore it. If you
add a --verbose flag then you will be able to track it.

You might want to set fsync=off while doing the restore. This is safe
since if the machine crashes during restore you just start again. Oh,
and increase work_mem too - there's only going to be one process.

What will take the most time is the creating of indexes etc.

It will take a long time to do a full restore though - you've got 64GB
of data and slow disks.

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: dforums
Дата:
Сообщение: Restoration of datas
Следующее
От: Henrik
Дата:
Сообщение: Filesystem benchmarking for pg 8.3.3 server