pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Vijaykumar Jain <vijaykumarjain.github@gmail.com>
Cc: Gilar Ginanjar <gilar@innovation-project.com>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: Unexpected block ID found when reading data
Date: Tue, 03 Aug 2021 09:59:33 -0400
Message-ID: <1703671.1627999173@sss.pgh.pa.us> (raw)
In-Reply-To: <CAM+6J95EhF609LYf6bEbR+go8=tSca4fTkRZv=w62x5UfdcRdg@mail.gmail.com>
References: <0E5BA871-06D7-413B-930E-4A523FF1847C@innovation-project.com>
	<08fc89dd-c974-880d-26ca-c1a6c7ab1d1d@aklaver.com>
	<B236F738-E318-4530-8443-36F3A692CE35@innovation-project.com>
	<CAM+6J95EhF609LYf6bEbR+go8=tSca4fTkRZv=w62x5UfdcRdg@mail.gmail.com>

Vijaykumar Jain <vijaykumarjain.github@gmail.com> writes:
> On Tue, 3 Aug 2021 at 08:19, Gilar Ginanjar <gilar@innovation-project.com>
> wrote:
>> I'm not sure which pg_dump version did i use before, but I used psql 12.5
>> to dump and the db version is postgresql 9.6.
>> 
>> pgrestore command:
>> pg_restore -U myuser -j8 -d mydb dbdump.backup
>> 
>> I’ve tried to restore to postgre 9.6, 12.1 and 12.5

> 9.6 has had a lot of minor fixes all the way to 9.6.22 , I am speculating,
> maybe your restoration to the latest minor version is failing.

This error is internal to pg_restore, so the target server version isn't
going to make any difference.  Either the dump file is corrupt, or more
likely you're dealing with a pg_restore bug or version discrepancy.
(pg_restore *should* complain if the archive file is too new, but there
were some bugs in that code until recently :-(.)

Anyway, people have asked for the pg_restore version several times,
and I hope this explains why it's critical information.  *PLEASE*
show us the output of "pg_restore --version".  It would also be
useful to see the first dozen or two lines of output from
"pg_restore -l -v dbdump.backup", which should include the dump
file's version as well as the source pg_dump's version.

			regards, tom lane





view thread (16+ messages)  latest in thread

Message-ID: <1703671.1627999173@sss.pgh.pa.us>
Permalink:  ../1703671.1627999173@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1703671.1627999173@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, vijaykumarjain.github@gmail.com, gilar@innovation-project.com, adrian.klaver@aklaver.com
  Subject: Re: Unexpected block ID found when reading data
  In-Reply-To: <1703671.1627999173@sss.pgh.pa.us>
  References: <0E5BA871-06D7-413B-930E-4A523FF1847C@innovation-project.com> <08fc89dd-c974-880d-26ca-c1a6c7ab1d1d@aklaver.com> <B236F738-E318-4530-8443-36F3A692CE35@innovation-project.com> <CAM+6J95EhF609LYf6bEbR+go8=tSca4fTkRZv=w62x5UfdcRdg@mail.gmail.com> <1703671.1627999173@sss.pgh.pa.us>

* 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