Skip to content

Commit 2128ceb

Browse files
Remove extra prefetch iterator setup for Bitmap Table Scan
1a0da34 replaced Bitmap Table Scan's separate private and shared bitmap iterators with a unified iterator. It accidentally set up the prefetch iterator twice for non-parallel bitmap table scans. Remove the extra set up call to tbm_begin_iterate().
1 parent 754c610 commit 2128ceb

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/backend/executor/nodeBitmapHeapscan.c

-9
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,6 @@ BitmapHeapNext(BitmapHeapScanState *node)
105105
elog(ERROR, "unrecognized result from subplan");
106106

107107
node->tbm = tbm;
108-
109-
#ifdef USE_PREFETCH
110-
if (node->prefetch_maximum > 0)
111-
node->prefetch_iterator =
112-
tbm_begin_iterate(node->tbm, dsa,
113-
pstate ?
114-
pstate->prefetch_iterator :
115-
InvalidDsaPointer);
116-
#endif /* USE_PREFETCH */
117108
}
118109
else if (BitmapShouldInitializeSharedState(pstate))
119110
{

0 commit comments

Comments
 (0)