pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Gilar Ginanjar <gilar@innovation-project.com>
To: Vijaykumar Jain <vijaykumarjain.github@gmail.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: Unexpected block ID found when reading data
Date: Sat, 28 Aug 2021 09:18:52 -0700
Message-ID: <bbcf71e4-cec2-7633-0938-95752060dbd4@aklaver.com> (raw)
In-Reply-To: <BFF5879C-A032-45C8-8E7C-CE46F4A7147A@innovation-project.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>
	<7D88A569-8920-41E0-BF77-EB16FB2934BB@innovation-project.com>
	<CAM+6J979RriBGgp3bh3rjM=yT2HYv7N_hMGXRjGCPqGM6P_9-Q@mail.gmail.com>
	<BFF5879C-A032-45C8-8E7C-CE46F4A7147A@innovation-project.com>

On 8/27/21 5:31 PM, Gilar Ginanjar wrote:
> Hi, sorry it's been a long time to reply.
> 
> It throw the same errors. I can't find any solution. It frustrated me 
> and i've been on a break since. ;)


Per upstream advice do something like:

pg_restore -U myuser -s -d mydb dbdump.backup

to get the schema definitions into the database.

Then:

pg_restore -U myuser -a -t <table_name> -d mydb dbdump.backup

to restore the data for a  table at a time.

You will mostly likely hit an error on one or more tables, but you will 
get the rest in and know where your problem is.

> 
> 
>> On 5 Aug 2021, at 00.50, Vijaykumar Jain 
>> <vijaykumarjain.github@gmail.com 
>> <mailto:vijaykumarjain.github@gmail.com>> wrote:
>>
>> On Tue, 3 Aug 2021 at 20:37, Gilar Ginanjar 
>> <gilar@innovation-project.com <mailto:gilar@innovation-project.com>> 
>> wrote:
>>
>>     I’m not sure which patch version i used to dump, but i was using
>>     postgre 12.5 for pg_dump back then.
>>
>>     I’m running pg_restore -f dbdump.backup right now, I think it will
>>     take some times because it has a large size (around 9 GB). There
>>     are no issues yet.
>>
>>
>> Did this complete without issues ? or did it throw the same errors ?
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (16+ messages)

Message-ID: <bbcf71e4-cec2-7633-0938-95752060dbd4@aklaver.com>
Permalink:  ../bbcf71e4-cec2-7633-0938-95752060dbd4@aklaver.com/
Also on:    postgresql.org/message-id/bbcf71e4-cec2-7633-0938-95752060dbd4@aklaver.com

 · 

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: adrian.klaver@aklaver.com, gilar@innovation-project.com, vijaykumarjain.github@gmail.com
  Subject: Re: Unexpected block ID found when reading data
  In-Reply-To: <bbcf71e4-cec2-7633-0938-95752060dbd4@aklaver.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> <7D88A569-8920-41E0-BF77-EB16FB2934BB@innovation-project.com> <CAM+6J979RriBGgp3bh3rjM=yT2HYv7N_hMGXRjGCPqGM6P_9-Q@mail.gmail.com> <BFF5879C-A032-45C8-8E7C-CE46F4A7147A@innovation-project.com> <bbcf71e4-cec2-7633-0938-95752060dbd4@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