Re: Deferred Constraints Issues

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Deferred Constraints Issues
Дата
Msg-id 20080325132356.U1947@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Deferred Constraints Issues  (kevin kempter <kevin@kevinkempterllc.com>)
Список pgsql-admin
On Tue, 25 Mar 2008, kevin kempter wrote:

> I've placed this sql in a script:
>
> psql my_db <<!
> begin;
> SET CONSTRAINTS ALL DEFERRED ;
> delete from account where 1 = 1;
> delete from cust where 1 = 1;
> delete from cust_type where 1 = 1;
> delete from cust_orders where 1 = 1;
> commit;
> !
>
> The tables have relationships, however I expect the 'SET CONSTRAINTS
> ALL DEFERRED' to defer constraint checks.

IIRC it's defined to only defer constraints created with DEFERRABLE and/or
INITIALLY DEFERRED. The default is NOT DEFERRABLE.

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

Предыдущее
От: kevin kempter
Дата:
Сообщение: Deferred Constraints Issues
Следующее
От: Michael Monnerie
Дата:
Сообщение: Re: Failover of the Primary database and starting the standby database in Postgresql in PITR configuraiton?