mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
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
This commit is contained in:
@ -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));
|
||||
|
||||
|
Reference in New Issue
Block a user