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)
commit691ba06047d445bac85e587e02bf9bd37ca84dd3
tree70e31317b89a90dc7fecacec41243a9cad4e8486
parent40cd26b0f8b6a1074f8651afe8f00249922b5770
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