diff options
author | Jeff Davis <jdavis@postgresql.org> | 2020-02-06 11:49:56 -0800 |
---|---|---|
committer | Jeff Davis <jdavis@postgresql.org> | 2020-02-06 11:49:56 -0800 |
commit | 7d4395d0a11589aa450a073d658c49b420f4493f (patch) | |
tree | b9be6165922e73d2351d8565f9051184ae56f036 /src/include/executor | |
parent | c02fdc9223015c5c386abfa00c47fc7f4c845161 (diff) | |
download | postgresql-7d4395d0a11589aa450a073d658c49b420f4493f.tar.gz postgresql-7d4395d0a11589aa450a073d658c49b420f4493f.zip |
Refactor hash_agg_entry_size().
Consolidate the calculations for hash table size estimation. This will
help with upcoming Hash Aggregation work that will add additional call
sites.
Diffstat (limited to 'src/include/executor')
-rw-r--r-- | src/include/executor/nodeAgg.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/executor/nodeAgg.h b/src/include/executor/nodeAgg.h index 2fe82da6ff7..264916f9a92 100644 --- a/src/include/executor/nodeAgg.h +++ b/src/include/executor/nodeAgg.h @@ -309,6 +309,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); +extern Size hash_agg_entry_size(int numAggs, Size tupleWidth, + Size transitionSpace); #endif /* NODEAGG_H */ |