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

Teodor Sigaev <teodor@sigaev.ru>

Commit: 0ab43c96781f37a72ae4e1e897d1e10f56c484d2
Author: Teodor Sigaev <teodor@sigaev.ru>
Date: 2008-08-23T10:40:03Z
Releases: 8.3.4
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