diff options
author | Jeff Davis <jdavis@postgresql.org> | 2020-04-03 19:52:16 -0700 |
---|---|---|
committer | Jeff Davis <jdavis@postgresql.org> | 2020-04-03 20:07:58 -0700 |
commit | 0588ee63aa2d8c5765d086991555cd9acdd4d86f (patch) | |
tree | 6992318ae8adc1e241c73f063b55f61203daa136 /src/include/executor/nodeAgg.h | |
parent | 3e0d80fd8d3dd4f999e0d3aa3e591f480d8ad1fd (diff) |
Include chunk overhead in hash table entry size estimate.
Don't try to be precise about it, just use a constant 16 bytes of
chunk overhead. Being smarter would require knowing the memory context
where the chunk will be allocated, which is not known by all callers.
Discussion: https://postgr.es/m/20200325220936.il3ni2fj2j2b45y5@alap3.anarazel.de
Diffstat (limited to 'src/include/executor/nodeAgg.h')
-rw-r--r-- | src/include/executor/nodeAgg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/executor/nodeAgg.h b/src/include/executor/nodeAgg.h index a5b8a004d1e..c2b55728bfa 100644 --- a/src/include/executor/nodeAgg.h +++ b/src/include/executor/nodeAgg.h @@ -314,7 +314,7 @@ extern AggState *ExecInitAgg(Agg *node, EState *estate, int eflags); extern void ExecEndAgg(AggState *node); extern void ExecReScanAgg(AggState *node); -extern Size hash_agg_entry_size(int numAggs, Size tupleWidth, +extern Size hash_agg_entry_size(int numTrans, Size tupleWidth, Size transitionSpace); extern void hash_agg_set_limits(double hashentrysize, uint64 input_groups, int used_bits, Size *mem_limit, |