Add common interface for TBMIterators

Melanie Plageman <melanieplageman@gmail.com>

Commit: 7f9d4187e7bab10329cc00aff34cfba08248d4be
Author: Melanie Plageman <melanieplageman@gmail.com>
Date: 2024-12-18T23:19:28Z
Releases: 18.0
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

Files

Discussion