Re: why restoring a dump file is sooo slow - Mailing list pgsql-general

From Mike Mascari
Subject Re: why restoring a dump file is sooo slow
Date
Msg-id 3EAA7600.9050702@mascari.com
Whole thread Raw
In response to why restoring a dump file is sooo slow  ("Reynard Hilman" <reynardmh@lightsky.com>)
Responses Re: why restoring a dump file is sooo slow  (Ron Johnson <ron.l.johnson@cox.net>)
List 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 by date:

Previous
From: "Reynard Hilman"
Date:
Subject: why restoring a dump file is sooo slow
Next
From: Ron Johnson
Date:
Subject: Re: Backing up 16TB of data (was Re: > 16TB worth of