aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/heap/heapam_handler.c
diff options
context:
space:
mode:
authorMelanie Plageman <melanieplageman@gmail.com>2024-12-18 18:19:28 -0500
committerMelanie Plageman <melanieplageman@gmail.com>2024-12-18 18:19:28 -0500
commit7f9d4187e7bab10329cc00aff34cfba08248d4be (patch)
tree91eea6e103e5a8512dbd0c66be4f80ff3d32793e /src/backend/access/heap/heapam_handler.c
parent28328ec87b45725f62bed1104d99c8b3220d1675 (diff)
downloadpostgresql-7f9d4187e7bab10329cc00aff34cfba08248d4be.tar.gz
postgresql-7f9d4187e7bab10329cc00aff34cfba08248d4be.zip
Add common interface for TBMIterators
Add and use TBMPrivateIterator, which replaces the current TBMIterator for serial use cases, and repurpose TBMIterator to be a unified interface for both the serial ("private") and parallel ("shared") TID Bitmap iterator interfaces. This encapsulation simplifies call sites for callers supporting both parallel and serial TID Bitmap access. TBMIterator is not yet used in this commit. Author: Melanie Plageman Reviewed-by: Tomas Vondra, Heikki Linnakangas Discussion: https://postgr.es/m/063e4eb4-32d9-439e-a0b1-75565a9835a8%40iki.fi
Diffstat (limited to 'src/backend/access/heap/heapam_handler.c')
-rw-r--r--src/backend/access/heap/heapam_handler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/heap/heapam_handler.c b/src/backend/access/heap/heapam_handler.c
index 689773ff239..adf968df42b 100644
--- a/src/backend/access/heap/heapam_handler.c
+++ b/src/backend/access/heap/heapam_handler.c
@@ -2138,7 +2138,7 @@ heapam_scan_bitmap_next_block(TableScanDesc scan,
if (scan->st.bitmap.rs_shared_iterator)
tbmres = tbm_shared_iterate(scan->st.bitmap.rs_shared_iterator);
else
- tbmres = tbm_iterate(scan->st.bitmap.rs_iterator);
+ tbmres = tbm_private_iterate(scan->st.bitmap.rs_iterator);
if (tbmres == NULL)
return false;