Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id A6B92633059 for ; Tue, 22 Jun 2010 15:40:48 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 71856-09 for ; Tue, 22 Jun 2010 18:40:41 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 711046321AE for ; Tue, 22 Jun 2010 15:40:41 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o5MIed0M005734; Tue, 22 Jun 2010 14:40:39 -0400 (EDT) To: "Igor Neyman" cc: pgsql-admin@postgresql.org Subject: Re: parallel option in pg_restore In-reply-to: References: <1319.1277217422@sss.pgh.pa.us> <2216.1277220948@sss.pgh.pa.us> <3824.1277226616@sss.pgh.pa.us> Comments: In-reply-to "Igor Neyman" message dated "Tue, 22 Jun 2010 13:34:15 -0400" Date: Tue, 22 Jun 2010 14:40:39 -0400 Message-ID: <5733.1277232039@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201006/178 X-Sequence-Number: 34956 "Igor Neyman" writes: > Attached is script that could be used to pre-create "parent" tables > (from which partitions were inherited). Thanks. Now that I dig into it, it looks like the actual trigger for the problem is that pg_dump, not pg_restore, couldn't seek while it was creating the dump file --- so it didn't seek back and update the file's table-of-contents with exact dump offsets. What command did you use to create the dump file, exactly? regards, tom lane