From: Gene Lum <gene.lum@rsa.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #6134: pg_restore failed with "corrupt tar header"
Date: Fri, 29 Jul 2011 15:44:36 GMT
Message-ID: <201107291544.p6TFiaZ7046092@wwwmaster.postgresql.org> (raw)
The following bug has been logged online:
Bug reference: 6134
Logged by: Gene Lum
Email address: gene.lum@rsa.com
PostgreSQL version: 9.0
Operating system: Windows 7 (32-bit)
Description: pg_restore failed with "corrupt tar header"
Details:
I tried to import an output tar file from pg_dump (same version) using
pg_restore. I can import using the command line without problem. I can also
execute the command through a Java process by specifying the filename
without problem.
However, if I execute the command through a Java process and pipe in the
file contents to the stdin of the process, the command failed with this
error:
Error: pg_restore: [tar archiver] corrupt tar header found in PGDMP
(expected 364, computed 19903) file position 256
I used the same method on Unix without problem. This only happened on
Windows.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: gene.lum@rsa.com
Subject: Re: BUG #6134: pg_restore failed with "corrupt tar header"
In-Reply-To: <201107291544.p6TFiaZ7046092@wwwmaster.postgresql.org>
References: <201107291544.p6TFiaZ7046092@wwwmaster.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox