Batching in the Executor
summary
Prototype replaces per-tuple plumbing with batch paths: adds ExecProcNodeBatch() API, a TupleBatch abstraction and table AM callbacks (get_next_batch etc.) and then folds batching into tuple table slots with a batch-aware tuple table slot. Early microbenchmarks show ~25% gain from batch scans, ~40% after batched expression evaluation, and ~50% with batched aggregation. Patches include table AM changes, slot callbacks, and new batch-capable exec/opcodes; prototypes work and expose next steps for projection, joins, and planner cost changes.
AI-written summary · about
