Hi, Attached is v3 of the two-patch heap-local batching series. The series is still based on master at 1c4b1de8885.
Changes since v2: - heap_page_batch_next() now verifies that the stored offsets, tuple count, current position, and buffer still belong to the current heap scan. This prevents a stale batch from being reused when a compatible buffer slot is used by another scan or survives a rescan. - Batch qual evaluation now enters the function-usage accounting code only when track_functions requires it. Per-call accounting is still preserved when function tracking is enabled. - Consecutive supported quals referencing the same attribute now reuse the already collected Datum values for rows remaining in the mask. - prepare_batch_qual() now has one outer loop over quals, while retaining the unmasked hot path for the first qual. These changes do not alter the external interfaces or the set of supported expressions. Best regards, Denis Smirnov
v3-0001-Avoid-repeated-heapgettup_pagemode-calls-within-a.patch
Description: Binary data
v3-0002-Evaluate-SeqScan-quals-in-heap-page-batches.patch
Description: Binary data
