Disable FK constarints - Mailing list pgsql-general

From Prestation3.EXPLOITATION@nexans.com
Subject Disable FK constarints
Date
Msg-id OF36709185.B9B0264C-ONC125711E.0038B2BB-C125711E.0039C017@NEXANS.COM
Whole thread Raw
Responses Re: Disable FK constarints
List pgsql-general
Hi,

I try to load an entire database ( from Oracle via ora2pg )
create table is OK
there are some FK's  in the database

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


How can I get rid off the FK CONSTRAINTS during the load ???

Thanks in advance...



pgsql-general by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: actual SQL statement
Next
From: Martijn van Oosterhout
Date:
Subject: Re: How do I use the backend APIs