Skip to content
Advertisement

Find the row violating the constraint to be added

I’m trying to add a check constraint to a table like

and I get the error:

Is there a way to have postgres (9.6) tell me at which row it fails? It would help a lot.

Advertisement

Answer

There sure is.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement