mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +03:00
Separate TBM[Shared|Private]Iterator and TBMIterateResult
Remove the TBMIterateResult member from the TBMPrivateIterator and TBMSharedIterator and make tbm_[shared|private_]iterate() take a TBMIterateResult as a parameter. This allows tidbitmap API users to manage multiple TBMIterateResults per scan. This is required for bitmap heap scan to use the read stream API, with which there may be multiple I/Os in flight at once, each one with a TBMIterateResult. Reviewed-by: Tomas Vondra <tomas@vondra.me> Discussion: https://postgr.es/m/d4bb26c9-fe07-439e-ac53-c0e244387e01%40vondra.me
This commit is contained in:
@@ -111,7 +111,7 @@ ginFillScanEntry(GinScanOpaque so, OffsetNumber attnum,
|
||||
ItemPointerSetMin(&scanEntry->curItem);
|
||||
scanEntry->matchBitmap = NULL;
|
||||
scanEntry->matchIterator = NULL;
|
||||
scanEntry->matchResult = NULL;
|
||||
scanEntry->matchResult.blockno = InvalidBlockNumber;
|
||||
scanEntry->matchNtuples = -1;
|
||||
scanEntry->list = NULL;
|
||||
scanEntry->nlist = 0;
|
||||
|
||||
Reference in New Issue
Block a user