Re: Pg_restore failing due to data inconsistency in dump file - Mailing list pgsql-admin

From David G. Johnston
Subject Re: Pg_restore failing due to data inconsistency in dump file
Date
Msg-id CAKFQuwY8n=cM3BxKSVX73MLuWDAHeB7gwpwQOjwQHHU4W4vA_A@mail.gmail.com
Whole thread Raw
In response to Re: Pg_restore failing due to data inconsistency in dump file  (soumitra bhandary <soumitra.bhandary@hotmail.com>)
List pgsql-admin
On Thu, Dec 13, 2018 at 7:26 AM soumitra bhandary <soumitra.bhandary@hotmail.com> wrote:
But this one is third party application and dump is restored from dump file not plain text file . So is there any way to control it ?

Your backup file (and the source database is comes from) is corrupted.

You need to decide whether you want to restore that backup anyway; or just throw it away, fix the source database, and generate a new backup file.

If you want to do the former you will want to restore schema only.  Modify the schema by dropping the foreign key.  Restore the data.  Fix the newly restored data.  Recreate the foreign key.

David J.

pgsql-admin by date:

Previous
From: soumitra bhandary
Date:
Subject: Re: Pg_restore failing due to data inconsistency in dump file
Next
From: Artem Tomyuk
Date:
Subject: pg_attribute getting bloated in size