Re: inconsistent backup?

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: inconsistent backup?
Дата
Msg-id A737B7A37273E048B164557ADEF4A58B17C855F4@ntex2010i.host.magwien.gv.at
обсуждение исходный текст
Ответ на Re: inconsistent backup?  (Ralf Schuchardt <rasc@gmx.de>)
Список pgsql-general
Ralf Schuchardt wrote:
> Am 19.Dez. 2013 um 09:41 schrieb Andreas Kretschmer <andreas@a-kretschmer.de>:
>> 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 dump file.

... or you can edit the dump and change the necessary DDL statements.

Yours,
Laurenz Albe

В списке pgsql-general по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Best way to sync possibly corrupted data?
Следующее
От: Shaun Thomas
Дата:
Сообщение: Re: Best way to sync possibly corrupted data?