Re: Detect referential integrity structure

Поиск
Список
Период
Сортировка
От Rob Sargent
Тема Re: Detect referential integrity structure
Дата
Msg-id 4A6F5AD3.1000700@gmail.com
обсуждение исходный текст
Ответ на Detect referential integrity structure  (Akos Gabriel <akos.gabriel@i-logic.hu>)
Список pgsql-sql
Perhaps another option:

Alter the references to ON DELETE CASCADE as seen here 
<http://www.postgresql.org/docs/8.3/static/ddl-constraints.html>


Akos Gabriel wrote:
> Hi,
>
> I've a big/complex database (Adempiere - www.adempiere.org ) where I'd
> like to delete some rows from some tables (delete a client and its
> data from the ERP database).
> All tables are in one schema (adempiere).
> There are some foreign keys/constraints.
> I've following options:
>
> - disable all constraints, doing the delete, enable all constraints.
> - find out the "right sequence" and do the delete -s.
>
> Does anyone have such an algorythm, or a method of disabling all the
> constraints? We have 8.3.7 right now. The solution will be published
> into the Adempiere wiki / contributed to the project as well.
>
> Thanks in advance,
> Akos Gabriel
>
>   


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

Предыдущее
От: Akos Gabriel
Дата:
Сообщение: Detect referential integrity structure
Следующее
От: nha
Дата:
Сообщение: Re: sql-porting-problem oracle to postgresql with UPDATE/IS NOT NULL