diff options
author | Jeff Davis <jdavis@postgresql.org> | 2020-03-23 13:56:28 -0700 |
---|---|---|
committer | Jeff Davis <jdavis@postgresql.org> | 2020-03-23 15:43:07 -0700 |
commit | 64fe6022790920ef6edee475bfa162a961f148d8 (patch) | |
tree | 74feb997972baf2ce5cf8b2f80ff6eaa912ac755 /src/backend/commands/explain.c | |
parent | 0830d21f5b01064837dc8bd910ab31a5b7a1101a (diff) |
Fixes for Disk-based Hash Aggregation.
Justin Pryzby raised a couple issues with commit 1f39bce0. Fixed.
Also, tweak the way the size of a hash entry is estimated and the
number of buckets is estimated when calling BuildTupleHashTableExt().
Discussion: https://www.postgresql.org/message-id/20200319064222.GR26184@telsasoft.com
Diffstat (limited to 'src/backend/commands/explain.c')
-rw-r--r-- | src/backend/commands/explain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c index 58141d8393c..ff2f45cfb25 100644 --- a/src/backend/commands/explain.c +++ b/src/backend/commands/explain.c @@ -2778,7 +2778,7 @@ static void show_hashagg_info(AggState *aggstate, ExplainState *es) { Agg *agg = (Agg *)aggstate->ss.ps.plan; - long memPeakKb = (aggstate->hash_mem_peak + 1023) / 1024; + int64 memPeakKb = (aggstate->hash_mem_peak + 1023) / 1024; Assert(IsA(aggstate, AggState)); |