From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Sar <zengu@seznam.cz>
To: pgsql-general@postgresql.org
Subject: Re: Experiencing error during restore - found unexpected block ID (0)
Date: Mon, 16 Dec 2019 16:39:31 -0800
Message-ID: <21efb6c3-bdb7-63be-4ea5-1e55e2439bc0@aklaver.com> (raw)
In-Reply-To: <3SH.IAqA.7kkLeDppu}m.1TzyBS@seznam.cz>
References: <3SH.IAqA.7kkLeDppu}m.1TzyBS@seznam.cz>
On 12/16/19 9:46 AM, Sar wrote:
> Hi,
> I have database on Windows Server, running postgresql 10 and I've run
> pg_dump with options: -Fc --verbose -d db_name --file "E:\backup.sql"
> -T some_table.
> Now when I run pg_restore, also on windows server with postgresql 12, or
> on the same original server with postgresql 10, using options
> --data-only --verbose -j 8,
> or without jobs, but selecting some specific few tables with -t option I
> get follwing error:
Which Postgres version of pg_dump/pg_restore are you using to do above?
> error: pg_restore: error: found unexpected block ID (0) when reading
> data -- expected 3142
> This error will only happen on very few tables, most run fine.
What happens if you SELECT from these tables in the Postgres 10 instance?
Can you show the schema definition for one or more of the problem tables?
> Currently, I'm running without jobs and without tables selected with -t,
> however I haven't gotten to the specific table that causes the trouble
> (the restore will take days), however I already fear when it comes to
> that table the same error will trigger.
> I guess this could serve as a possible bug report as well, but any
> advice as to what I can do is appreciated.
--
Adrian Klaver
adrian.klaver@aklaver.com
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-general@postgresql.org
Cc: adrian.klaver@aklaver.com, zengu@seznam.cz
Subject: Re: Experiencing error during restore - found unexpected block ID (0)
In-Reply-To: <21efb6c3-bdb7-63be-4ea5-1e55e2439bc0@aklaver.com>
References: <3SH.IAqA.7kkLeDppu}m.1TzyBS@seznam.cz> <21efb6c3-bdb7-63be-4ea5-1e55e2439bc0@aklaver.com>
* 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