Re: pg_restore fails due to foreign key violation

From: Andreas Kretschmer <andreas(at)a-kretschmer(dot)de>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: pg_restore fails due to foreign key violation
Date: 2018-12-10 10:21:30
Message-ID: abc6b9dd-c742-6c3a-d349-7a1f9d75f2b7@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Am 10.12.18 um 11:15 schrieb Olga Vingurt:
> After playing with the dump and importing schema first and data next
> without the triggers we indeed see that data is missing in the table
> i.e. dump is not consistent.
> We don't stop the application which uses database during the dump but
> according to the documentation the dump still should be consistent.

please check if the data are consistent on the source database system.

>
> How is it possible that pg_dump created dump which is not consistent?
> Did it happen because we haven't stopped the application?

No, but maybe you have corrupted indexes on the source system.

Regards, Andreas

--
2ndQuadrant - The PostgreSQL Support Company.
www.2ndQuadrant.com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Laurenz Albe 2018-12-10 11:31:37 Re: Temp tables
Previous Message Olga Vingurt 2018-12-10 10:15:15 pg_restore fails due to foreign key violation