Re: >24 hour restore

From: Andrew Sullivan <andrew(at)libertyrms(dot)info>
To: pgsql-performance <pgsql-performance(at)postgresql(dot)org>
Subject: Re: >24 hour restore
Date: 2003-05-28 16:24:55
Message-ID: 20030528162455.GG6637@libertyrms.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)libertyrms(dot)info> M2P 2A8
+1 416 646 3304 x110

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Dave Tenny 2003-05-28 17:58:14 Re: IN list processing performance (yet again)
Previous Message scott.marlowe 2003-05-28 15:55:51 Re: >24 hour restore