Re: Dump / restore question

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Garo Hussenjian <garo(at)xapnet(dot)com>
Cc: Postgresql General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Dump / restore question
Date: 2002-10-27 22:13:41
Message-ID: 20021027221341.GA24168@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Oct 27, 2002 at 13:49:27 -0800,
Garo Hussenjian <garo(at)xapnet(dot)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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Paul Ottar Tornes 2002-10-27 23:39:39 www.postgresql.org/idocs/index.php?tutorial-table.html
Previous Message Garo Hussenjian 2002-10-27 21:49:27 Dump / restore question