Re: how to temporally disable foreign key constraint check - Mailing list pgsql-sql

From Oliveiros d'Azevedo Cristina
Subject Re: how to temporally disable foreign key constraint check
Date
Msg-id 49712385AAF34516B1CA6890916206DE@marktestcr.marktest.pt
Whole thread Raw
In response to how to temporally disable foreign key constraint check  (Emi Lu <emilu@encs.concordia.ca>)
Responses Re: how to temporally disable foreign key constraint check  (Emi Lu <emilu@encs.concordia.ca>)
List pgsql-sql
Something like

ALTER TABLE t_yourtable DROP CONSTRAINT
and then
ALTER TABLE t_yourtable ADD FOREIGN KEY 

?

Best,
Oliveiros

----- Original Message ----- 
From: "Emi Lu" <emilu@encs.concordia.ca>
To: <pgsql-sql@postgresql.org>
Sent: Friday, October 21, 2011 2:36 PM
Subject: [SQL] how to temporally disable foreign key constraint check


> Good morning,
> 
> 
> Is there a way to temporally disabled foreign key constraints something 
> like
> 
> SET FOREIGN_KEY_CHECKS=0
> 
> When population is done, will set FOREIGN_KEY_CHECKS=1
> 
> Thanks a lot!
> Emi
> 
> -- 
> Emi Lu, ENCS, Concordia University, Montreal H3G 1M8
> emilu@encs.concordia.ca        +1 514 848-2424 x5884
> 
> -- 
> Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-sql


pgsql-sql by date:

Previous
From: Emi Lu
Date:
Subject: how to temporally disable foreign key constraint check
Next
From: Emi Lu
Date:
Subject: Re: how to temporally disable foreign key constraint check