Delete On Table Violates Foreign Key Constraint Postgres, In PostgreSQL, you define a foreign key using the foreign key constraint.