mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +03:00
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
This commit is contained in:
@@ -352,7 +352,7 @@ typedef struct GinScanEntryData
|
||||
|
||||
/* for a partial-match or full-scan query, we accumulate all TIDs here */
|
||||
TIDBitmap *matchBitmap;
|
||||
TBMIterator *matchIterator;
|
||||
TBMPrivateIterator *matchIterator;
|
||||
TBMIterateResult *matchResult;
|
||||
|
||||
/* used for Posting list and one page in Posting tree */
|
||||
|
||||
Reference in New Issue
Block a user