Adjust cost model for HashAgg that spills to disk.
Jeff Davis <jdavis@postgresql.org>
Adjust cost model for HashAgg that spills to disk. Tomas Vondra observed that the IO behavior for HashAgg tends to be worse than for Sort. Penalize HashAgg IO costs accordingly. Also, account for the CPU effort of spilling the tuples and reading them back. Discussion: https://postgr.es/m/20200906212112.nzoy5ytrzjjodpfh@development Reviewed-by: Tomas Vondra Backpatch-through: 13
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/optimizer/path/costsize.c | modified | +13 −0 |
Discussion
- Disk-based hash aggregate's cost model 20 messages · 2020-08-28 → 2020-09-08