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 7FE5511F6109 for ; Mon, 10 Apr 2006 12:40:35 -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.119, HTML_MESSAGE=0.001] Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id w3dP1y7daZ08 for ; Mon, 10 Apr 2006 12:40:20 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.188]) by postgresql.org (Postfix) with ESMTP id DE89811F655D for ; Mon, 10 Apr 2006 12:39:54 -0300 (ADT) Received: by nproxy.gmail.com with SMTP id p77so628305nfc for ; Mon, 10 Apr 2006 08:39:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=i+W2tnwP7a5gdR3zq2wSfQOyAPxfbLLUTvdHQRBeKnyWen6RxrP7y34CwaDwLHqfEPUkYzs1x8KrDTtf7M8dbTetdiZWnghgSAiKgyJln90DrcRCbFCnGBtK19baC6XgTzG/0W02+zm8NapHSODrkltGxyS6DfRkOov9a1k6hvw= Received: by 10.49.10.15 with SMTP id n15mr242113nfi; Mon, 10 Apr 2006 08:39:53 -0700 (PDT) Received: by 10.49.27.16 with HTTP; Mon, 10 Apr 2006 08:39:53 -0700 (PDT) Message-ID: Date: Mon, 10 Apr 2006 21:09:53 +0530 From: "Rajesh Kumar Mallah" To: "Jesper Krogh" Subject: Re: Restore performance? Cc: pgsql-performance@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24378_17542672.1144683593035" References: X-Archive-Number: 200604/205 X-Sequence-Number: 18289 ------=_Part_24378_17542672.1144683593035 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/10/06, Jesper Krogh wrote: > > 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? was the last restore successfull ? if so why do you want to repeat ? some tips 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 temporar= y dump file. pg_dump | /path/to/psql813 -p 54XX newdb 2. use new version of pg_dump to dump the old database as new version is supposed to be wiser. 3. make sure you are trapping the restore errors properly psql newdb 2>&1 | cat | tee err works for me. The database contains quite alot of BLOB, thus the size. > > Jesper > -- > ./Jesper Krogh, jesper@krogh.cc, Jabber ID: jesper@jabbernet.dk > > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend > ------=_Part_24378_17542672.1144683593035 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

On 4/10/06, Jesper Krogh <jesper@krog= h.cc> wrote:
Hi

I'm currently upgrading a Posgresql 7.3.2 database to a
8.1.&l= t;something-good>

I'd run pg_dump | gzip > sqldump.gz &nb= sp;on the old system. That took about
30 hours and gave me an 90GB zippe= d file. Running
cat sqldump.gz | gunzip | psql
into the 8.1 database seems to take a= bout the same time. Are there
any tricks I can use to speed this dump+re= store process up?

was the last restore successfull ?= =20
if so why do you want to repeat ?

some tips

1. run new ve= rsion 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

2. = use new version of pg_dump to dump the old database as new version
 = ;   is supposed to be wiser.

3. make sure you are trapping the = restore errors properly
psql newdb 2>&1 | cat | tee err works for me.


 <= /div>
The data= base contains quite alot of BLOB, thus the size.

Jesper
--
./Jesper Krogh, = jesper@krogh.cc, Jabber ID: jesp= er@jabbernet.dk



---------------------------(end of broad= cast)---------------------------
TIP 6: explain analyze is your friend

------=_Part_24378_17542672.1144683593035--