@@ -433,8 +433,6 @@ collectMatchBitmap(RumBtreeData * btree, RumBtreeStack * stack,
433433 scanEntry -> predictNumberResult += RumGetNPosting (itup );
434434 }
435435
436- if (scanEntry -> forceUseBitmap )
437- return true;
438436 /*
439437 * Done with this entry, go to the next
440438 */
@@ -529,7 +527,7 @@ startScanEntry(RumState * rumstate, RumScanEntry entry)
529527
530528 entry -> isFinished = TRUE;
531529
532- if (entry -> isPartialMatch || entry -> forceUseBitmap ||
530+ if (entry -> isPartialMatch ||
533531 (entry -> queryCategory == RUM_CAT_EMPTY_QUERY &&
534532 !entry -> scanWithAddInfo ))
535533 {
@@ -599,11 +597,6 @@ startScanEntry(RumState * rumstate, RumScanEntry entry)
599597 & entry -> markAddInfo : NULL );
600598
601599 entry -> gdi = gdi ;
602- entry -> context = AllocSetContextCreate (CurrentMemoryContext ,
603- "RUM entry temporary context" ,
604- ALLOCSET_DEFAULT_MINSIZE ,
605- ALLOCSET_DEFAULT_INITSIZE ,
606- ALLOCSET_DEFAULT_MAXSIZE );
607600
608601 /*
609602 * We keep buffer pinned because we need to prevent deletion of
@@ -779,7 +772,7 @@ startScan(IndexScanDesc scan)
779772 {
780773 RumScanEntry entry = so -> entries [i ];
781774
782- if (entry -> isPartialMatch || entry -> forceUseBitmap )
775+ if (entry -> isPartialMatch )
783776 {
784777 scanType = RumRegularScan ;
785778 break ;
@@ -1011,11 +1004,6 @@ entryGetNextItemList(RumState * rumstate, RumScanEntry entry)
10111004
10121005 entry -> buffer = rumScanBeginPostingTree (gdi , NULL );
10131006 entry -> gdi = gdi ;
1014- entry -> context = AllocSetContextCreate (CurrentMemoryContext ,
1015- "RUM entry temporary context" ,
1016- ALLOCSET_DEFAULT_MINSIZE ,
1017- ALLOCSET_DEFAULT_INITSIZE ,
1018- ALLOCSET_DEFAULT_MAXSIZE );
10191007
10201008 /*
10211009 * We keep buffer pinned because we need to prevent deletion of
@@ -1266,8 +1254,7 @@ compareCurRumItemScanDirection(RumState *rumstate, RumScanEntry entry,
12661254 RumItem * minItem )
12671255{
12681256 return compareRumItemScanDirection (rumstate ,
1269- (entry -> forceUseBitmap ) ?
1270- InvalidAttrNumber : entry -> attnumOrig ,
1257+ entry -> attnumOrig ,
12711258 entry -> scanDirection ,
12721259 & entry -> curItem , minItem );
12731260}
@@ -1633,8 +1620,6 @@ entryFindItem(RumState * rumstate, RumScanEntry entry, RumItem * item)
16331620 return ;
16341621 }
16351622
1636- Assert (!entry -> forceUseBitmap );
1637-
16381623 /* Try to find in loaded part of page */
16391624 if ((ScanDirectionIsForward (entry -> scanDirection ) &&
16401625 compareRumItem (rumstate , entry -> attnumOrig ,
0 commit comments