Postgres Удаляйте ограничение иностранного ключа
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;