Fix possible duplicate tuples while GiST scan. Now page is processed
authorTeodor Sigaev <teodor@sigaev.ru>
Sat, 23 Aug 2008 10:40:03 +0000 (10:40 +0000)
committerTeodor Sigaev <teodor@sigaev.ru>
Sat, 23 Aug 2008 10:40:03 +0000 (10:40 +0000)
commit0ab43c96781f37a72ae4e1e897d1e10f56c484d2
treee03337ef4a768b60e2af2ba97f1bdc464a259116
parent3fcb7f0bd46b279da20ac3a9ffffda898c4cf573
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