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 C170F11F627D for ; Mon, 10 Apr 2006 05:22:39 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: 0.12 X-Spam-Level: X-Spam-Status: No, score=0.12 required=5 tests=[AWL=0.120] Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id nLH+s4AYk9Ni for ; Mon, 10 Apr 2006 05:22:34 -0300 (ADT) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 5CE8D11F6D27 for ; Mon, 10 Apr 2006 05:22:36 -0300 (ADT) Received: from mail.linuxnews.dk (shrek.krogh.cc [81.7.132.92]) by svr4.postgresql.org (Postfix) with ESMTP id A00DD5AF83D for ; Mon, 10 Apr 2006 08:22:36 +0000 (GMT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.linuxnews.dk (Postfix) with ESMTP id 5AD383BEC2C for ; Mon, 10 Apr 2006 10:22:33 +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 30860-07 for ; Mon, 10 Apr 2006 10:22:31 +0200 (CEST) Received: from mail.jabbernet.dk (localhost.localdomain [127.0.0.1]) by mail.linuxnews.dk (Postfix) with ESMTP id 55B003BEC29 for ; Mon, 10 Apr 2006 10:22:31 +0200 (CEST) Received: from 195.41.66.226 (SquirrelMail authenticated user jesper@krogh.cc) by mail.jabbernet.dk with HTTP; Mon, 10 Apr 2006 10:22:31 +0200 (CEST) Message-ID: <27860.195.41.66.226.1144657351.squirrel@mail.jabbernet.dk> Date: Mon, 10 Apr 2006 10:22:31 +0200 (CEST) Subject: Dump restore performance 7.3 -> 8.1 From: "Jesper Krogh" To: pgsql-performance@postgresql.org User-Agent: SquirrelMail/1.5.1 [CVS] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Debian amavisd-new at shrek.krogh.cc X-Archive-Number: 200604/194 X-Sequence-Number: 18278 Hi I'm currently upgrading a Posgresql 7.3.2 database to a 8.1. 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? Neither disk-io (viewed using vmstat 1) or cpu (viewed using top) seems to be the bottleneck. The database contains quite alot of BLOB's, thus the size. Jesper -- Jesper Krogh