Re: why restoring a dump file is sooo slow

Поиск
Список
Период
Сортировка
От Mike Mascari
Тема Re: why restoring a dump file is sooo slow
Дата
Msg-id 3EAA7600.9050702@mascari.com
обсуждение исходный текст
Ответ на why restoring a dump file is sooo slow  ("Reynard Hilman" <reynardmh@lightsky.com>)
Ответы Re: why restoring a dump file is sooo slow  (Ron Johnson <ron.l.johnson@cox.net>)
Список pgsql-general
Reynard Hilman wrote:
> Hi,
>
> I'm trying to restore a dump file that I created using:
> pg_dump -CD dbname > dump.sql
>
> the dump file size is about 87 Mb.
>
> so I did this to restore:
> psql -f dump.sql -U user template1
>
> It takes almost an hour and a half to restore the database.

This there a reason you are using the 'D' option to dump the database
as INSERTs? A dump which uses COPY (the default) instead will reload
much more quickly.

Mike Mascari
mascarm@mascari.com


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

Предыдущее
От: "Reynard Hilman"
Дата:
Сообщение: why restoring a dump file is sooo slow
Следующее
От: Ron Johnson
Дата:
Сообщение: Re: Backing up 16TB of data (was Re: > 16TB worth of