Search Postgresql Archives

Re: Disable FK constarints

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Prestation3.EXPLOITATION@xxxxxxxxxx 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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux