Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 52FFE634C40 for ; Tue, 31 Mar 2009 20:00:47 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 36152-03-3 for ; Tue, 31 Mar 2009 20:00:39 -0300 (ADT) Received: from mx3.hub.org (mx3.hub.org [206.223.169.73]) by mail.postgresql.org (Postfix) with ESMTP id 3E8A86347F3 for ; Tue, 31 Mar 2009 19:57:38 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from col0-omc4-s7.col0.hotmail.com (col0-omc4-s7.col0.hotmail.com [65.55.34.209]) by mx3.hub.org (Postfix) with ESMTP id C4ADE37B5EE for ; Tue, 31 Mar 2009 19:57:37 -0300 (ADT) Received: from COL104-W6 ([65.55.34.199]) by col0-omc4-s7.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 31 Mar 2009 15:57:34 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_fe4969f8-ed7c-43fb-b1e9-dfae33e630b9_" X-Originating-IP: [86.81.58.36] From: henk de wit To: Subject: How to get parallel restore in PG 8.4 to work? Date: Wed, 1 Apr 2009 00:57:34 +0200 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 31 Mar 2009 22:57:34.0948 (UTC) FILETIME=[149B2A40:01C9B254] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=AWL=-0.001, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200903/443 X-Sequence-Number: 33365 --_fe4969f8-ed7c-43fb-b1e9-dfae33e630b9_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi=2C For performance reasons (obviously =3B)) I'm experimenting with parallel re= store in PG 8.4. I grabbed the latest source snapshot (of today=2C March 30= ) and compiled this with zlib support. I dumped a DB from PG 8.3.5 (using m= aximum compression). I got this message however: postgres@mymachine:/home/henk/postgresql-8.4/bin$ time ./pg_restore -p 5434 -h localhost -U henk -d db_test -j 8 -Fc /home/henk/test-databases/dumps/db_test.custom pg_restore: [archiver] WARNING: archive is compressed=2C but this installation does not support compression -- no data will be available pg_restore: [archiver] cannot restore from compressed archive (compression not supported in this installation) So initially it seemed its only possible to do a pg_restore using the uncom= pressed pg_dump custom format. So I tried the uncompressed dump=2C but this= too failed. This last part was a little problematic anyway=2C since pg_dum= p absolutely wants to read its input from a file and does not accept any in= put from stdin. I assume reading from a file is necessary for the multiple = parallel processes to each read their own part of the file=2C something whi= ch might be difficult to do when reading from stdin. Apart from the fact that it simply doesn't work for me at the moment=2C I s= ee a major problem with this approach though. Dumping in the custom format = (option -Fc) is far slower than dumping in the plain format. Even if the pa= rallel restore would speed up things=2C then the combined time of a dump an= d restore would still be negatively affected when compared to doing a plain= dump and restore. I'm aware of the fact that I might be hitting some bugs= =2C as a development snapshot is by definition of course not stable. Also= =2C perhaps I'm missing something. My question is thus=3B could someone advise me how to get parallel restore = to work and how to speed up a dump in the custom file format? Many thanks in advance _________________________________________________________________ See all the ways you can stay connected to friends and family http://www.microsoft.com/windows/windowslive/default.aspx= --_fe4969f8-ed7c-43fb-b1e9-dfae33e630b9_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi=2C
For performance reasons (obviously =3B)) I'm experimenting with pa= rallel restore in PG 8.4. I grabbed the latest source snapshot (of today=2C= March 30) and compiled this with zlib support. I dumped a DB from PG 8.3.5= (using maximum compression). I got this message however:

postgres@my= machine:/home/henk/postgresql-8.4/bin$ time
./pg_restore -p 5434 -h loca= lhost -U henk -d db_test -j 8 -Fc
/home/henk/test-databases/dumps/db_tes= t.custom
pg_restore: [archiver] WARNING: archive is compressed=2C but th= is
installation does not support compression -- no data will be availabl= e
pg_restore: [archiver] cannot restore from compressed archive (compres= sion
not supported in this installation)


So initially it s= eemed its only possible to do a pg_restore using the uncompressed pg_dump c= ustom format. So I tried the uncompressed dump=2C but this too failed. This= last part was a little problematic anyway=2C since pg_dump absolutely want= s to read its input from a file and does not accept any input from stdin. I= assume reading from a file is=A0necessary for the multiple parallel proces= ses to each read their own part of the file=2C something which might be dif= ficult to do when reading from stdin.

Apart from the fact tha= t it simply doesn't work for me at the moment=2C I see a major problem with= this approach though. Dumping in the custom format (option -Fc) is far=A0slowe= r than dumping in the plain format. Even if the parallel restore would spee= d up things=2C then the combined time of a dump and restore would still be = negatively affected when compared to doing a plain dump and restore. I'm aw= are of the fact that I might be hitting some bugs=2C as a development snaps= hot is by definition of course not stable. Also=2C perhaps I'm missing some= thing.

My question is thus=3B could someone advise= me how to get parallel restore to work and how to speed up a dump in the c= ustom file format?

Many thanks in advance

<= /div>

See all the ways you can stay connected to frie= nds and family = --_fe4969f8-ed7c-43fb-b1e9-dfae33e630b9_--