Fix possible duplicate tuples while GiST scan. Now page is processed

Teodor Sigaev <teodor@sigaev.ru>

Commit: e41417571307cbf1f019525a3a7d3bf98e7c4603
Author: Teodor Sigaev <teodor@sigaev.ru>
Date: 2008-08-23T10:41:38Z
Releases: 8.2.10
Fix possible duplicate tuples while  GiST scan. Now page is processed
at once and ItemPointers are collected in memory.

Remove tuple's killing by killtuple() if tuple was moved to another
page - it could produce unaceptable overhead.

Backpatch up to 8.1 because the bug was introduced by GiST's concurrency support.

Files