Fix possible duplicate tuples while GiST scan. Now page is processed
commite295b0aac553774acf2aef8cfd073d2ae6d6d67f
authorteodor <teodor>
Sat, 23 Aug 2008 10:37:24 +0000 (23 10:37 +0000)
committerteodor <teodor>
Sat, 23 Aug 2008 10:37:24 +0000 (23 10:37 +0000)
treeccabd91121e1ec6853151d342e890ead1ac3e619
parentb917c2d18875d1b2a61c8ac01e65e2b625fefb6f
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