mirror of
https://github.com/postgres/postgres.git
synced 2025-05-29 16:21:20 +03:00
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().
This commit is contained in:
parent
754c610e13
commit
2128cebcdb
@ -105,15 +105,6 @@ BitmapHeapNext(BitmapHeapScanState *node)
|
|||||||
elog(ERROR, "unrecognized result from subplan");
|
elog(ERROR, "unrecognized result from subplan");
|
||||||
|
|
||||||
node->tbm = tbm;
|
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))
|
else if (BitmapShouldInitializeSharedState(pstate))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user