Re: Disable FK constarints

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Disable FK constarints
Дата
Msg-id 22853.1140712630@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Disable FK constarints  (Prestation3.EXPLOITATION@nexans.com)
Список pgsql-general
Prestation3.EXPLOITATION@nexans.com writes:
> I did insert's with :
> BEGIN TRANSACTION;
> SET CONSTRAINTS ALL DEFERRED;
> insert ...
> END TRANSACTION;

> I get:
> ERROR:  insert or update on table "transactions" violates foreign key
> constraint

SET CONSTRAINTS only affects those constraints that are marked
DEFERRABLE, which I believe is not the default.

            regards, tom lane

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

Предыдущее
От: Alban Hertroys
Дата:
Сообщение: Re: upgrade PostgreSQL 8.x on production FreeBSD
Следующее
От: Karsten Hilbert
Дата:
Сообщение: Re: How to specify infinity for intervals ?