Costin Grigoras <costing@cs.pub.ro> writes:
> how could duplicate records appear when the unique index existed ?
Good question. I have a sneaking suspicion that your trigger might be a
contributing factor, but I'm not sure how. Can you provide a
self-contained test sequence to reproduce the problem?
regards, tom lane