修复effective_io_concurrency取值大于1时分区表全局索引BitmapHeapscan报错的问题。

This commit is contained in:
April01xxx
2023-10-23 17:24:30 +08:00
parent 95816afb82
commit 11a436be1a
4 changed files with 123 additions and 2 deletions

View File

@ -1309,10 +1309,10 @@ void BitmapHeapPrefetchNext(
Oid oldOid = GPIGetCurrPartOid(node->gpi_scan);
int2 oldBktId = cbi_get_current_bucketid(node->cbi_scan);
Relation oldheap = NULL;
Relation prefetchRel = scan->rs_rd;
while (node->prefetch_pages < node->prefetch_target) {
TBMIterateResult* tbmpre = tbm_iterate(*prefetch_iterator);
Relation prefetchRel = scan->rs_rd;
hpscan = (tbm_is_crossbucket(node->tbm) ? (HBktTblScanDesc)node->ss.ss_currentScanDesc : NULL);
if (tbmpre == NULL) {