"Wang, Mary Y" <mary(dot)y(dot)wang(at)boeing(dot)com> writes:
> What would be the newer version of pgsql (I mean a bit higher version of my current version) that provides that capability of telling me what the duplicated key was ?
Hmm ... [ experiments... ] For the specific case of COPY into a table
with a pre-existing unique index, it looks like only CVS HEAD will give
you an error message with the exact index value. However, everything
back to 7.4 will include the text of the whole current line of COPY
data, which probably would be enough to figure out the problem.
regards, tom lane