Itagaki Takahiro <itagaki.takahiro@oss.ntt.co.jp> writes:
> Vlad Arkhipov <arhipov@dc.baikal.ru> wrote:
>> Is it possible to print which key value is duplicated when 'Duplicate
>> key value violates unique constraint' occurs? Foreign key violation
>> error reports such kind of information.
> If no objection, I'd like to submit the patch to the next commit-fest (8.5).
I added this to CommitFest-2009-First. One comment is that I'd prefer
to refactor this so it's not btree-specific, but could be used by other
index AMs. I'm not quite sure where to put the code instead, though.
regards, tom lane