From 9760486fabdccd58b5763a1a4cbc3e88a6b59ffb Mon Sep 17 00:00:00 2001 From: Melanie Plageman Date: Mon, 10 Jun 2024 12:40:58 -0400 Subject: [PATCH v24 06/12] Make Bitmap Table Scan 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 fb747cb9e2..d7944eccd5 100644 --- a/src/backend/executor/nodeBitmapHeapscan.c +++ b/src/backend/executor/nodeBitmapHeapscan.c @@ -274,7 +274,7 @@ new_page: if (node->pstate == NULL && !tbm_exhausted(&node->prefetch_iterator) && 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.45.2