Postgres Remova a restrição de chave estrangeira
ALTER TABLE your_tbl DROP constraint your_cnstrnt;
Trained Tuna
ALTER TABLE your_tbl DROP constraint your_cnstrnt;
ALTER TABLE tbl_StudentMarks DISABLE TRIGGER ALL;
SET session_replication_role = replica;