Bug in copy

Поиск
Список
Период
Сортировка
От me nefcanto
Тема Bug in copy
Дата
Msg-id CAEHBEOBCweDWGNHDaUk4=10HG0QXXJJAGXbEnFLMB30M+Qw+dg@mail.gmail.com
обсуждение исходный текст
Список pgsql-bugs
Hello

I run this command:

copy "Parts" ("Id","Title") from stdin with (format csv, delimiter ",", on_error ignore)

But I receive this error:

duplicate key value violates unique constraint "PartsUniqueLocaleTitle"

This means that the on_error setting is not working. When I try to insert a million records, this becomes extremely annoying and counterproductive.

When we specify that on_error should be ignored, any type of error including data type inconsistency, check constraint inconsistency, foreign key inconsistency, etc. should be ignored and Postgres should move to the next record and not fail the entire bulk operation.

Regards
Saeed Nemati

В списке pgsql-bugs по дате отправления: