Disabling FK for tables in Postgresql

Started by Josh Harrisonabout 17 years ago2 messagesgeneral
Jump to latest
#1Josh Harrison
joshques@gmail.com

Hi
Is it possible to disable FK constraints in Postgresql?
Thanks
Josh

#2A. Kretschmer
andreas.kretschmer@schollglas.com
In reply to: Josh Harrison (#1)
Re: Disabling FK for tables in Postgresql

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