From 77db9d9ff21c539499b74216099678dad91ab334 Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Mon, 20 Oct 2008 13:39:44 +0000 Subject: Remove mark/restore support in GIN and GiST indexes. Per Tom's comment. Also revome useless GISTScanOpaque->flags field. --- src/backend/access/gist/gistget.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/backend/access/gist/gistget.c') 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)); -- cgit v1.2.3