Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 2BCC01337B67 for ; Tue, 29 Mar 2011 14:41:55 -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 10004-04 for ; Tue, 29 Mar 2011 17:41:37 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 587AD133655C for ; Tue, 29 Mar 2011 14:41:36 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Tue, 29 Mar 2011 12:41:35 -0500 Message-Id: <4D91D379020000250003BED3@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Tue, 29 Mar 2011 12:41:29 -0500 From: "Kevin Grittner" To: "Ravi Thati" , Subject: Re: pg_restore on windows with pipe References: In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline 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: 201103/265 X-Sequence-Number: 37137 Ravi Thati wrote: > type C:\testdump | pg_restore -Fc [...] > pg_restore: [custom archiver] *could not find block ID 1770* in > archive -- possibly corrupt archive > pg_restore: *** aborted because of error Does the type command treat the stream as characters? (You could try putting a ^Z end of file character into a small text file and see how much of it you see if you run type against it.) -Kevin