From dae58dd92f24a0535129167989249c48e4d69b9f Mon Sep 17 00:00:00 2001 From: Melanie Plageman Date: Mon, 10 Jun 2024 12:40:58 -0400 Subject: [PATCH v21 07/20] BitmapHeapScan: Make prefetch sync error more detailed Add the prefetch and current block numbers to the error message emitted when the prefetch iterator gets out of sync with the main iterator in serial bitmap table scan. --- src/backend/executor/nodeBitmapHeapscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/executor/nodeBitmapHeapscan.c b/src/backend/executor/nodeBitmapHeapscan.c index 90fa5585312..5134ab86020 100644 --- a/src/backend/executor/nodeBitmapHeapscan.c +++ b/src/backend/executor/nodeBitmapHeapscan.c @@ -251,7 +251,7 @@ new_page: if (node->pstate == NULL && !node->prefetch_iterator.exhausted && node->pfblockno < node->blockno) - elog(ERROR, "prefetch and main iterators are out of sync"); + elog(ERROR, "prefetch and main iterators are out of sync. pfblockno: %d. blockno: %d", node->pfblockno, node->blockno); /* Adjust the prefetch target */ BitmapAdjustPrefetchTarget(node); -- 2.34.1