From: Melanie Plageman Date: Thu, 19 Dec 2024 16:55:18 +0000 (-0500) Subject: Remove extra prefetch iterator setup for Bitmap Table Scan X-Git-Tag: REL_18_BETA1~1237 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=2128cebcdb2f32303baf200fa2ccb2947366c636;p=postgresql.git Remove extra prefetch iterator setup for Bitmap Table Scan 1a0da347a7ac98db 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(). --- diff --git a/src/backend/executor/nodeBitmapHeapscan.c b/src/backend/executor/nodeBitmapHeapscan.c index 928c94cab6a..e6067500e11 100644 --- a/src/backend/executor/nodeBitmapHeapscan.c +++ b/src/backend/executor/nodeBitmapHeapscan.c @@ -105,15 +105,6 @@ BitmapHeapNext(BitmapHeapScanState *node) elog(ERROR, "unrecognized result from subplan"); node->tbm = tbm; - -#ifdef USE_PREFETCH - if (node->prefetch_maximum > 0) - node->prefetch_iterator = - tbm_begin_iterate(node->tbm, dsa, - pstate ? - pstate->prefetch_iterator : - InvalidDsaPointer); -#endif /* USE_PREFETCH */ } else if (BitmapShouldInitializeSharedState(pstate)) {