diff options
Diffstat (limited to 'src/backend/access/gin/ginget.c')
-rw-r--r-- | src/backend/access/gin/ginget.c | 50 |
1 files changed, 1 insertions, 49 deletions
diff --git a/src/backend/access/gin/ginget.c b/src/backend/access/gin/ginget.c index c4619a61460..746de42af59 100644 --- a/src/backend/access/gin/ginget.c +++ b/src/backend/access/gin/ginget.c @@ -8,7 +8,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/access/gin/ginget.c,v 1.19 2008/09/04 11:47:05 teodor Exp $ + * $PostgreSQL: pgsql/src/backend/access/gin/ginget.c,v 1.20 2008/10/20 13:39:44 teodor Exp $ *------------------------------------------------------------------------- */ @@ -583,54 +583,6 @@ entryGetItem(Relation index, GinScanEntry entry) } /* - * restart from saved position. Actually it's needed only for - * partial match. function is called only by ginrestpos() - */ -void -ginrestartentry(GinScanEntry entry) -{ - ItemPointerData stopItem = entry->curItem; - bool savedReduceResult; - - if ( entry->master || entry->partialMatch == NULL ) - return; /* entry is slave or not a partial match type*/ - - if ( entry->isFinished ) - return; /* entry was finished before ginmarkpos() call */ - - if ( ItemPointerGetBlockNumber(&stopItem) == InvalidBlockNumber ) - return; /* entry wasn't began before ginmarkpos() call */ - - /* - * Reset iterator - */ - tbm_begin_iterate( entry->partialMatch ); - entry->partialMatchResult = NULL; - entry->offset = 0; - - /* - * Temporary reset reduceResult flag to guarantee refinding - * of curItem - */ - savedReduceResult = entry->reduceResult; - entry->reduceResult = FALSE; - - do - { - /* - * We can use null instead of index because - * partial match doesn't use it - */ - if ( entryGetItem( NULL, entry ) == false ) - elog(ERROR, "cannot refind scan position"); /* must not be here! */ - } while( compareItemPointers( &stopItem, &entry->curItem ) != 0 ); - - Assert( entry->isFinished == FALSE ); - - entry->reduceResult = savedReduceResult; -} - -/* * Sets key->curItem to new found heap item pointer for one scan key * Returns isFinished, ie TRUE means we did NOT get a new item pointer! * Also, *keyrecheck is set true if recheck is needed for this scan key. |