How could one create a constraint to avoid duplicate values beeing entered in the database but simply ignoring them and not stoping a COPY command from ending. I tried code below adding a UNIQUE constraint but this way it stops a possible BULK copy when it founds a duplicate , i simply want to ignore and move on .
ALTER TABLE postal_code
ADD CONSTRAINT unique_postalcode_geom UNIQUE(postal_code, geom);