Improve planner's estimation of the space needed for HashAgg plans:
Tom Lane <tgl@sss.pgh.pa.us>
Improve planner's estimation of the space needed for HashAgg plans: look at the actual aggregate transition datatypes and the actual overhead needed by nodeAgg.c, instead of using pessimistic round numbers. Per a discussion with Michael Tiemann.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/executor/nodeAgg.c | modified | +21 −1 |
| src/backend/optimizer/plan/planner.c | modified | +22 −17 |
| src/backend/optimizer/util/clauses.c | modified | +85 −47 |
| src/include/executor/nodeAgg.h | modified | +3 −1 |
| src/include/optimizer/clauses.h | modified | +9 −4 |