Thread: Disabling FK for tables in Postgresql

Disabling FK for tables in Postgresql

From
Josh Harrison
Date:
Hi
Is it possible to disable FK constraints in Postgresql?
Thanks
Josh

Re: Disabling FK for tables in Postgresql

From
"A. Kretschmer"
Date:
In response to Josh Harrison :
> Hi
> Is it possible to disable FK constraints in Postgresql?

You can set the constraint deferred (if the constraint defined
deferrable) or drop the constraint.

http://www.postgresql.org/docs/current/static/sql-set-constraints.html


Regards, Andreas
--
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net