Re: inconsistent backup? - Mailing list pgsql-general

From Ralf Schuchardt
Subject Re: inconsistent backup?
Date
Msg-id 129E7FF8-10F4-459F-8301-05B9061478B6@gmx.de
Whole thread Raw
In response to inconsistent backup?  (Andreas Kretschmer <andreas@a-kretschmer.de>)
Responses Re: inconsistent backup?  (Albe Laurenz <laurenz.albe@wien.gv.at>)
List pgsql-general
Am 19.Dez. 2013 um 09:41 schrieb Andreas Kretschmer <andreas@a-kretschmer.de>:

> hello all,
>
> don't ask why, but a customer created tables with foreign key constraints but
> with inconsistent data.
>
> Because of this he disabled all triggers (alter table foo disable trigger all).
> So far, so bad ...
> (he can't clean the data at the moment)
>
> In the dump there are the constraints, but NOT the disable triggers. In other
> words: no way to restore.
>
> What can we do now?

pg_restore has a --disable-triggers option, that could be of some help. Or you add the command to the top of the sql
dumpfile. 


Ralf



pgsql-general by date:

Previous
From: wd
Date:
Subject: Re: unexpected pageaddr error in db log
Next
From: Laurentius Purba
Date:
Subject: Re: Is it advisable to pg_upgrade directly from 9.0 to 9.3?