Bitmap Table Scans use unified TBMIterator
authorMelanie Plageman <melanieplageman@gmail.com>
Wed, 18 Dec 2024 23:43:39 +0000 (18:43 -0500)
committerMelanie Plageman <melanieplageman@gmail.com>
Wed, 18 Dec 2024 23:43:39 +0000 (18:43 -0500)
commit1a0da347a7ac98db6964feb5e3063fc6e8fc92a0
treefd98c7942a5acdc0d32377642a83cc67d4e01a52
parent7f9d4187e7bab10329cc00aff34cfba08248d4be
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
src/backend/access/heap/heapam_handler.c
src/backend/executor/nodeBitmapHeapscan.c
src/include/access/relscan.h
src/include/access/tableam.h
src/include/nodes/execnodes.h
src/include/nodes/tidbitmap.h