postgres drop foreign key constraint on partitioned table code example
Example: how to disable foreign key constraint in postgresql
ALTER TABLE tbl_StudentMarks DISABLE TRIGGER ALL;
ALTER TABLE tbl_StudentMarks DISABLE TRIGGER ALL;