aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/mcxtfuncs.c
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2024-07-24 17:24:59 +1200
committerThomas Munro <tmunro@postgresql.org>2024-07-24 17:32:35 +1200
commitf6bef362cac8c47137f9786171eaee5a95fb538b (patch)
tree3fbf2bb88476cd34c5a8d553f24425f2086061e9 /src/backend/utils/adt/mcxtfuncs.c
parent1462aad2e4474ab61174f8ab00992cd3d6d57c7b (diff)
downloadpostgresql-f6bef362cac8c47137f9786171eaee5a95fb538b.tar.gz
postgresql-f6bef362cac8c47137f9786171eaee5a95fb538b.zip
Refactor tidstore.c iterator buffering.
Previously, TidStoreIterateNext() would expand the set of offsets for each block into an internal buffer that it overwrote each time. In order to be able to collect the offsets for multiple blocks before working with them, change the contract. Now, the offsets are obtained by a separate call to TidStoreGetBlockOffsets(), which can be called at a later time. TidStoreIteratorResult objects are safe to copy and store in a queue. Reviewed-by: Noah Misch <noah@leadboat.com> Discussion: https://postgr.es/m/CAAKRu_bbkmwAzSBgnezancgJeXrQZXy4G4kBTd+5=cr86H5yew@mail.gmail.com
Diffstat (limited to 'src/backend/utils/adt/mcxtfuncs.c')
0 files changed, 0 insertions, 0 deletions