"Andrus" <kobruleht2(at)hot(dot)ee> writes:
>> There have been a number of index-corruption bugs fixed since 8.1.4 ...
>>
>> In particular, if it's possible that any of these clients abort before
>> committing these insertions, the vacuum race condition bug fixed in
>> 8.1.10 is a pretty likely candidate for your problem.
> I changed second statement to ...
> Will this fix the isse
No. Look, as you've been told several times already you are running a
very old version with a lot of known bugs. Just update to the latest
in that branch. It's not hard.
regards, tom lane