Re: pg_restore: [custom archiver] could not uncompress data: incorrect data check

Lists: pgsql-general
From: Janning Vygen <vygen(at)gmx(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: pg_restore: [custom archiver] could not uncompress data: incorrect data check
Date: 2005-03-14 11:22:57
Message-ID: 200503141222.57624.vygen@gmx.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Hi,

i dumped my database on server1 with pg_dump -Fc ..., copied the dump to
server2, both same pgsql version 7.4.6

pg_restore says
pg_restore: [custom archiver] could not uncompress data: incorrect data check

But it "seems" that almost any data was restored.

What does this error mean. I didn't found anything in the archives (searched
google with 'pg_restore "incorrect data check"'). Just one unanswered message
( http://archives.postgresql.org/pgsql-general/2003-08/msg01035.php )

kind regards,
janning


From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Janning Vygen <vygen(at)gmx(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_restore: [custom archiver] could not uncompress data: incorrect data check
Date: 2005-03-14 12:39:57
Message-ID: 20050314123957.GB20480@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

On Mon, Mar 14, 2005 at 12:22:57PM +0100, Janning Vygen wrote:

> i dumped my database on server1 with pg_dump -Fc ..., copied the dump to
> server2, both same pgsql version 7.4.6

How are you copying the file?

> pg_restore says
> pg_restore: [custom archiver] could not uncompress data: incorrect data check

"incorrect data check" appears to be a zlib error. Is there any
chance the file got corrupted? Can you duplicate the problem if
you do another dump?

What OS and version of zlib are you using on each server?

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/