Re: Dump / restore question

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Dump / restore question
Дата
Msg-id 20021027221341.GA24168@wolff.to
обсуждение исходный текст
Ответ на Dump / restore question  (Garo Hussenjian <garo@xapnet.com>)
Ответы Dump / restore question
Список pgsql-general
On Sun, Oct 27, 2002 at 13:49:27 -0800,
  Garo Hussenjian <garo@xapnet.com> wrote:
> Hello,
>
> I have a dump file from "pg_dump dbname > dump_file" of about 115 Mb that
> takes a few seconds to create and takes several hours to restore using "psql
> dbname < dump_file".
>
> I can't imagine I'm doing this correctly! What am I missing?

Enforcing constraints and updating indexes can take a lot of time.

You might get a significant speed up by not creating indexes or enforcing
constraints (foreign keys probably being the bigest worry) until after
the data gets loaded.

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

Предыдущее
От: Garo Hussenjian
Дата:
Сообщение: Dump / restore question
Следующее
От: "Paul Ottar Tornes"
Дата:
Сообщение: www.postgresql.org/idocs/index.php?tutorial-table.html