Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id E3EEAB5DC17 for ; Thu, 21 Jul 2011 16:58:40 -0300 (ADT) 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 60627-05-3 for ; Thu, 21 Jul 2011 19:58:35 +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 1A335B5DC20 for ; Thu, 21 Jul 2011 16:58:30 -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 p6LJwT2X019303; Thu, 21 Jul 2011 15:58:29 -0400 (EDT) To: Greg Johnson cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6127: pg_restore failing: unexpected message type 0x58 during COPY from stdin In-reply-to: References: <201107211613.p6LGDXLC082569@wwwmaster.postgresql.org> <17983.1311273888@sss.pgh.pa.us> Comments: In-reply-to Greg Johnson message dated "Thu, 21 Jul 2011 12:00:35 -0700" Date: Thu, 21 Jul 2011 15:58:29 -0400 Message-ID: <19302.1311278309@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-3.081 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-1.181 X-Spam-Level: X-Archive-Number: 201107/158 X-Sequence-Number: 30770 Greg Johnson writes: > On Thu, Jul 21, 2011 at 11:44 AM, Tom Lane wrote: >> This looks like pg_restore is terminating unexpectedly. What do you see >> on the client end of it? > pg_restore: [custom archiver] could not read from input file: end of file Well, that suggests you have a truncated or otherwise corrupted pg_dump archive file. Do you get a similar failure if you just do "pg_restore -l" on the archive file? Is the pg_dump run reporting any signs of distress? regards, tom lane