SELECT * FROM pg_constraint WHERE conname = '<ConstraintName>';
SELECT * FROM <TableName> WHERE <UniqueColumn> = '<ValueThatCausedViolation>';
SELECT * FROM <ReferencedTableName> WHERE <ReferencedColumn> = '<ValueThatCausedViolation>';
\d <TableName>
ALTER TABLE <TableName> DROP CONSTRAINT <ConstraintName>;
ALTER TABLE <TableName> ADD CONSTRAINT <ConstraintName> UNIQUE (<ColumnName>);
Let Dr. Droid create custom investigation plans for your infrastructure.
Start Free POC (15-min setup) →