I'm trying to use pq.CopyIn to do bulk imports as described here:
https://godoc.org/github.com/lib/pq
The import is much faster than other methods I've tried but I am finding that a unique constraint violation in just one record will cause the entire import to fail.
Is there any way to change this behavior? Is there some easy way to find out which record caused the problem? Is there a better option that pq.CopyIn for fast imports?
For my application I could do some queries and some checking of the data that I'm importing but I'm hoping there's a better way.