Fix possible duplicate tuples while GiST scan. Now page is processed
authorTeodor Sigaev <[email protected]>
Sat, 23 Aug 2008 10:41:38 +0000 (10:41 +0000)
committerTeodor Sigaev <[email protected]>
Sat, 23 Aug 2008 10:41:38 +0000 (10:41 +0000)
commit4f947d73e0bb7eba5c28695d464cd7c1a7ee7272
tree7a8f6d4c36214acb0582ad55d2d954cc4f3a43ee
parent76271928efd31bf01efe6fa4e1615aa9faae5665
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.
src/backend/access/gist/gistget.c
src/backend/access/gist/gistscan.c
src/include/access/gist_private.h