Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 1F56813364DE for ; Mon, 13 Dec 2010 18:10:07 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 18037-10 for ; Mon, 13 Dec 2010 22:10:00 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sd-17937.dedibox.fr (sd-17937.dedibox.fr [88.191.100.74]) by mail.postgresql.org (Postfix) with ESMTP id DAF3F1337B67 for ; Mon, 13 Dec 2010 18:09:59 -0400 (AST) Received: from [192.168.10.2] (ASte-Genev-Bois-153-1-83-210.w81-48.abo.wanadoo.fr [81.48.33.210]) by sd-17937.dedibox.fr (Postfix) with ESMTPA id C289C3B8F5; Mon, 13 Dec 2010 23:09:59 +0100 (CET) Message-ID: <4D0699B5.7050701@lelarge.info> Date: Mon, 13 Dec 2010 23:09:57 +0100 From: Guillaume Lelarge User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); fr; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: paulo matadr CC: admin Subject: Re: 8.4 restore parallel References: <336291.2324.qm@web114714.mail.gq1.yahoo.com> In-Reply-To: <336291.2324.qm@web114714.mail.gq1.yahoo.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201012/103 X-Sequence-Number: 36332 Le 13/12/2010 21:42, paulo matadr a écrit : > [...] > I made an backup of database 8.3 > test.dmp > and tested restore in (8.4.5) using parallel > pg_restore -d xxx -n yyy -t kkkk -j 3 < test.dmp > > And give error: > pg_restore: [custom archiver] cannot reopen stdin > pg_restore: [archiver] worker process failed: exit code 1 > > > Why not working? > Don't use the "<". You should have: pg_restore -d xxx -n yyy -t kkkk -j 3 test.dmp BTW, if you only restore one table, the -j option won't be of any use. -- Guillaume http://www.postgresql.fr http://dalibo.com