Re: >24 hour restore - Mailing list pgsql-performance

From Andrew Sullivan
Subject Re: >24 hour restore
Date
Msg-id 20030528162455.GG6637@libertyrms.info
Whole thread Raw
In response to >24 hour restore  ("Chad Thompson" <chad@weblinkservices.com>)
List pgsql-performance
On Wed, May 28, 2003 at 09:12:23AM -0600, Chad Thompson wrote:
>
> It started off quick, but it got to the first table w/ any real data in it
> (only about 30k records) and acted like it was frozen.  I left it running
> all night, it finished that table and started on others but it hasnt even
> gotten to the big tables (2 @ about 9 million records).  At this pace it
> will take several days to finish the restore.

This makes me think you have a trigger problem.  You don't say what
version you're running, but my guess is that you need to disable all
your triggers, and remove all your indices, before you start loading
the data.  Re-enable them afterwards.

By building the schema first, then loading the data, you're spending
cycles running triggers &c.

A

--
----
Andrew Sullivan                         204-4141 Yonge Street
Liberty RMS                           Toronto, Ontario Canada
<andrew@libertyrms.info>                              M2P 2A8
                                         +1 416 646 3304 x110


pgsql-performance by date:

Previous
From: "scott.marlowe"
Date:
Subject: Re: >24 hour restore
Next
From: Dave Tenny
Date:
Subject: Re: IN list processing performance (yet again)