Fix possible duplicate tuples while GiST scan. Now page is processed
authorTeodor Sigaev <teodor@sigaev.ru>
Sat, 23 Aug 2008 10:43:58 +0000 (10:43 +0000)
committerTeodor Sigaev <teodor@sigaev.ru>
Sat, 23 Aug 2008 10:43:58 +0000 (10:43 +0000)
commit11ccdd6cd194932a22a834597066dd078ecde95f
tree208662362600130a1bf5522dc4d7faaced8194ca
parent9fd16124988934ada4a91e42408e916896bbf2d4
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 [new file with mode: 0644]