summaryrefslogtreecommitdiff
path: root/src/backend/commands/explain.c
diff options
context:
space:
mode:
authorJeff Davis <jdavis@postgresql.org>2020-03-23 13:56:28 -0700
committerJeff Davis <jdavis@postgresql.org>2020-03-23 15:43:07 -0700
commit64fe6022790920ef6edee475bfa162a961f148d8 (patch)
tree74feb997972baf2ce5cf8b2f80ff6eaa912ac755 /src/backend/commands/explain.c
parent0830d21f5b01064837dc8bd910ab31a5b7a1101a (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.c2
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));