nikita.y.volkov@mail.ru writes:
> Executing concurrent transactions inserting the same value of a unique key
> fails with the "duplicate key" error under code "23505" instead of any of
> transaction conflict errors with a "40***" code.
Sounds fine to me, in fact preferable to a 40XXX code.
regards, tom lane