X-Original-To: pgsql-performance@postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id 4D7F2925383 for ; Wed, 28 May 2003 12:24:57 -0400 (EDT) Received: from developer.postgresql.org ([64.117.224.193]) by localhost (developer.postgresql.org [64.117.224.193:10024]) (amavisd-new) with ESMTP id 72855-05 for ; Wed, 28 May 2003 12:24:56 -0400 (EDT) Received: from mail.libertyrms.com (unknown [209.167.124.227]) by developer.postgresql.org (Postfix) with ESMTP id 51003925355 for ; Wed, 28 May 2003 12:24:56 -0400 (EDT) Received: from [10.1.2.130] (helo=dba2) by mail.libertyrms.com with esmtp (Exim 3.22 #3 (Debian)) id 19L3jT-0004f1-00 for ; Wed, 28 May 2003 12:24:55 -0400 Received: by dba2 (Postfix, from userid 1019) id 6FE40CB51; Wed, 28 May 2003 12:24:55 -0400 (EDT) Date: Wed, 28 May 2003 12:24:55 -0400 From: Andrew Sullivan To: pgsql-performance Subject: Re: >24 hour restore Message-ID: <20030528162455.GG6637@libertyrms.info> Mail-Followup-To: Andrew Sullivan , pgsql-performance References: <027901c32530$273839c0$32021aac@chad> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <027901c32530$273839c0$32021aac@chad> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/237 X-Sequence-Number: 2016 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 M2P 2A8 +1 416 646 3304 x110