|
|
|
|
|
by wolph
3167 days ago
|
|
During most normal operations such as updates, inserts and deletes it will enforce them. But, opposed to other databases, you are allowed to completely ignore your foreign key constraints leaving you with a (in my opinion) possibly corrupt database. SET FOREIGN_KEY_CHECKS = 0;
INSERT INTO ...
SET FOREIGN_KEY_CHECKS = 1;
Now you might have data in your database that's actually incorrect. |
|
[1] https://www.postgresql.org/docs/9.6/static/sql-set-constrain...