Vadim Mikheev <vadim@krs.ru> writes:
> Whenever index insert fails (for _any_ reason) index may be ^^^^^^^^^^^^^^^^
> corrupted. I hope to address this with WAL...
One certainly hopes that's not true in the case of "cannot insert
duplicate key into a unique index" failures !?
regards, tom lane