Re: Pg_restore failing due to data inconsistency in dump file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Dec 13, 2018 at 7:26 AM soumitra bhandary <soumitra.bhandary@xxxxxxxxxxx> 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.


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux