Re: why restoring a dump file is sooo slow

From: Mike Mascari <mascarm(at)mascari(dot)com>
To: reynardmh(at)lightsky(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: why restoring a dump file is sooo slow
Date: 2003-04-26 12:05:20
Message-ID: 3EAA7600.9050702@mascari.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)mascari(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2003-04-26 12:43:29 Re: Backing up 16TB of data (was Re: > 16TB worth of
Previous Message Reynard Hilman 2003-04-26 09:20:41 why restoring a dump file is sooo slow