diff options
author | Melanie Plageman <melanieplageman@gmail.com> | 2024-12-18 18:43:39 -0500 |
---|---|---|
committer | Melanie Plageman <melanieplageman@gmail.com> | 2024-12-18 18:43:39 -0500 |
commit | 1a0da347a7ac98db6964feb5e3063fc6e8fc92a0 (patch) | |
tree | fd98c7942a5acdc0d32377642a83cc67d4e01a52 /src/backend/access/heap/heapam_handler.c | |
parent | 7f9d4187e7bab10329cc00aff34cfba08248d4be (diff) | |
download | postgresql-1a0da347a7ac98db6964feb5e3063fc6e8fc92a0.tar.gz postgresql-1a0da347a7ac98db6964feb5e3063fc6e8fc92a0.zip |
Bitmap Table Scans use unified TBMIterator
With the repurposing of TBMIterator as an interface for both parallel
and serial iteration through TIDBitmaps in commit 7f9d4187e7bab10329cc,
bitmap table scans may now use it.
Modify bitmap table scan code to use the TBMIterator. This requires
moving around a bit of code, so a few variables are initialized
elsewhere.
Author: Melanie Plageman
Reviewed-by: Tomas Vondra
Discussion: https://postgr.es/m/c736f6aa-8b35-4e20-9621-62c7c82e2168%40vondra.me
Diffstat (limited to 'src/backend/access/heap/heapam_handler.c')
-rw-r--r-- | src/backend/access/heap/heapam_handler.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/backend/access/heap/heapam_handler.c b/src/backend/access/heap/heapam_handler.c index adf968df42b..2da4e4da13e 100644 --- a/src/backend/access/heap/heapam_handler.c +++ b/src/backend/access/heap/heapam_handler.c @@ -2135,10 +2135,7 @@ heapam_scan_bitmap_next_block(TableScanDesc scan, { CHECK_FOR_INTERRUPTS(); - if (scan->st.bitmap.rs_shared_iterator) - tbmres = tbm_shared_iterate(scan->st.bitmap.rs_shared_iterator); - else - tbmres = tbm_private_iterate(scan->st.bitmap.rs_iterator); + tbmres = tbm_iterate(&scan->st.rs_tbmiterator); if (tbmres == NULL) return false; |