pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Sullivan <andrew@libertyrms.info>
To: pgsql-performance <pgsql-performance@postgresql.org>
Subject: Re: >24 hour restore
Date: Wed, 28 May 2003 12:24:55 -0400
Message-ID: <20030528162455.GG6637@libertyrms.info> (raw)
In-Reply-To: <027901c32530$273839c0$32021aac@chad>
References: <027901c32530$273839c0$32021aac@chad>

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




view thread (6+ messages)  latest in thread

Message-ID: <20030528162455.GG6637@libertyrms.info>
Permalink:  ../20030528162455.GG6637@libertyrms.info/
Also on:    postgresql.org/message-id/20030528162455.GG6637@libertyrms.info

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: andrew@libertyrms.info
  Subject: Re: >24 hour restore
  In-Reply-To: <20030528162455.GG6637@libertyrms.info>
  References: <027901c32530$273839c0$32021aac@chad> <20030528162455.GG6637@libertyrms.info>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox