aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistget.c
diff options
context:
space:
mode:
authorTeodor Sigaev <teodor@sigaev.ru>2008-10-20 13:39:44 +0000
committerTeodor Sigaev <teodor@sigaev.ru>2008-10-20 13:39:44 +0000
commit77db9d9ff21c539499b74216099678dad91ab334 (patch)
tree9d6ef9735895ed83d16c1ed719b9968c0906984a /src/backend/access/gist/gistget.c
parent7f6bc33fe3490bd1a2b9b584abbabe3e17b1715a (diff)
downloadpostgresql-77db9d9ff21c539499b74216099678dad91ab334.tar.gz
postgresql-77db9d9ff21c539499b74216099678dad91ab334.zip
Remove mark/restore support in GIN and GiST indexes.
Per Tom's comment. Also revome useless GISTScanOpaque->flags field.
Diffstat (limited to 'src/backend/access/gist/gistget.c')
-rw-r--r--src/backend/access/gist/gistget.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/backend/access/gist/gistget.c b/src/backend/access/gist/gistget.c
index 574eeff7ff3..a9a58455780 100644
--- a/src/backend/access/gist/gistget.c
+++ b/src/backend/access/gist/gistget.c
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/access/gist/gistget.c,v 1.76 2008/10/17 17:02:21 teodor Exp $
+ * $PostgreSQL: pgsql/src/backend/access/gist/gistget.c,v 1.77 2008/10/20 13:39:44 teodor Exp $
*
*-------------------------------------------------------------------------
*/
@@ -494,16 +494,6 @@ gistfindnext(IndexScanDesc scan, OffsetNumber n, ScanDirection dir)
*/
oldcxt = MemoryContextSwitchTo(so->tempCxt);
- /*
- * If we modified the index during the scan, we may have a pointer to a
- * ghost tuple, before the scan. If this is the case, back up one.
- */
- if (so->flags & GS_CURBEFORE)
- {
- so->flags &= ~GS_CURBEFORE;
- n = OffsetNumberPrev(n);
- }
-
while (n >= FirstOffsetNumber && n <= maxoff)
{
it = (IndexTuple) PageGetItem(p, PageGetItemId(p, n));