X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id B92C211F7DCF for ; Mon, 10 Apr 2006 12:55:29 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 required=5 tests=[none] Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id dEasGWc8OnNp for ; Mon, 10 Apr 2006 12:55:18 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.linuxnews.dk (shrek.krogh.cc [81.7.132.92]) by postgresql.org (Postfix) with ESMTP id 1CF9811F7DA1 for ; Mon, 10 Apr 2006 12:55:17 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.linuxnews.dk (Postfix) with ESMTP id C51223BEC47; Mon, 10 Apr 2006 17:55:15 +0200 (CEST) Received: from mail.linuxnews.dk ([127.0.0.1]) by localhost (shrek.krogh.cc [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15073-09; Mon, 10 Apr 2006 17:54:56 +0200 (CEST) Received: from [192.168.0.134] (0x50a0747b.bynxx16.adsl-dhcp.tele.dk [80.160.116.123]) by mail.linuxnews.dk (Postfix) with ESMTP id 656713BEC43; Mon, 10 Apr 2006 17:54:55 +0200 (CEST) Message-ID: <443A7FC7.2000001@krogh.cc> Date: Mon, 10 Apr 2006 17:54:47 +0200 From: Jesper Krogh User-Agent: Mail/News 1.5 (X11/20060309) MIME-Version: 1.0 To: Rajesh Kumar Mallah CC: pgsql-performance@postgresql.org Subject: Re: Restore performance? References: In-Reply-To: X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Debian amavisd-new at shrek.krogh.cc X-Archive-Number: 200604/207 X-Sequence-Number: 18291 Rajesh Kumar Mallah wrote: >> I'd run pg_dump | gzip > sqldump.gz on the old system. That took about >> 30 hours and gave me an 90GB zipped file. Running >> cat sqldump.gz | gunzip | psql >> into the 8.1 database seems to take about the same time. Are there >> any tricks I can use to speed this dump+restore process up? > > > was the last restore successfull ? > if so why do you want to repeat ? "about the same time" == Estimated guess from restoring a few tables I was running a testrun, without disabling updates to the production database, the real run is scheduled for easter where there hopefully is no users on the system. So I need to repeat, I'm just trying to get a feelingabout how long time I need to allocate for the operation. > 1. run new version of postgres in a different port and pipe pg_dump to psql > this may save the CPU time of compression , there is no need for a temporary > dump file. > > pg_dump | /path/to/psql813 -p 54XX newdb I'll do that. It is a completely different machine anyway. > 2. use new version of pg_dump to dump the old database as new version > is supposed to be wiser. Check. > 3. make sure you are trapping the restore errors properly > psql newdb 2>&1 | cat | tee err works for me. Thats noted. -- Jesper Krogh, jesper@krogh.cc