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

Lines changed: 0 additions & 9 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy