Re: how to temporally disable foreign key constraint check

From: "Oliveiros d'Azevedo Cristina" <oliveiros(dot)cristina(at)marktest(dot)pt>
To: <emilu(at)encs(dot)concordia(dot)ca>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: how to temporally disable foreign key constraint check
Date: 2011-10-21 14:58:03
Message-ID: 49712385AAF34516B1CA6890916206DE@marktestcr.marktest.pt
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)encs(dot)concordia(dot)ca>
To: <pgsql-sql(at)postgresql(dot)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(at)encs(dot)concordia(dot)ca +1 514 848-2424 x5884
>
> --
> Sent via pgsql-sql mailing list (pgsql-sql(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-sql

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Matthias Howell 2011-10-21 15:38:57 Question about Escaping text when calling pgplsql functions
Previous Message Emi Lu 2011-10-21 13:36:34 how to temporally disable foreign key constraint check