X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id D9B40D1D2CE for ; Mon, 22 Mar 2004 14:18:51 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 16125-01 for ; Mon, 22 Mar 2004 10:18:59 -0400 (AST) Received: from jefftrout.com (h00a0cc4084e5.ne.client2.attbi.com [24.128.241.68]) by svr1.postgresql.org (Postfix) with SMTP id 8EF2AD1D2A4 for ; Mon, 22 Mar 2004 10:18:49 -0400 (AST) Received: (qmail 54380 invoked from network); 22 Mar 2004 14:19:02 -0000 Received: from localhost (HELO ?10.124.7.247?) (threshar@127.0.0.1) by localhost with SMTP; 22 Mar 2004 14:19:02 -0000 In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v612) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit Cc: From: Jeff Subject: Re: backup and recovery Date: Mon, 22 Mar 2004 09:18:59 -0500 To: "Mark M. Huber" X-Mailer: Apple Mail (2.612) X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/273 X-Sequence-Number: 12842 On Mar 18, 2004, at 3:08 PM, Mark M. Huber wrote: > It seams that any backup and recovery sucks. My main db backup takes > over two hours to complete and 13 hours to recover what am I doing > wrong? Any hints?ideas? Recommendations? > > Increasing sort_mem dramatically (say, 128M) will greatly speed things up - especially with foriegn key creation and index creation (Those two things are what takes the longest in a PG restore). Be sure to turn it back down to something normal after the store (If you didn't change it on a single session) However a 500k row table is not terribly big.. How big is the dump in terms of MB? -- Jeff Trout http://www.jefftrout.com/ http://www.stuarthamm.net/