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

Teodor Sigaev <teodor@sigaev.ru>

Commit: 4040629fe13c18630768fc3c5ff84b3ff3a32fdf
Author: Teodor Sigaev <teodor@sigaev.ru>
Date: 2008-08-23T10:43:58Z
Releases: 8.1.14
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