mirror of
https://github.com/postgres/postgres.git
synced 2025-08-25 20:23:07 +03:00
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
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user