File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1839,15 +1839,15 @@ hash_agg_check_limits(AggState *aggstate)
1839
1839
uint64 ngroups = aggstate -> hash_ngroups_current ;
1840
1840
Size meta_mem = MemoryContextMemAllocated (aggstate -> hash_metacxt ,
1841
1841
true);
1842
- Size hash_mem = MemoryContextMemAllocated (aggstate -> hashcontext -> ecxt_per_tuple_memory ,
1843
- true);
1842
+ Size hashkey_mem = MemoryContextMemAllocated (aggstate -> hashcontext -> ecxt_per_tuple_memory ,
1843
+ true);
1844
1844
1845
1845
/*
1846
1846
* Don't spill unless there's at least one group in the hash table so we
1847
1847
* can be sure to make progress even in edge cases.
1848
1848
*/
1849
1849
if (aggstate -> hash_ngroups_current > 0 &&
1850
- (meta_mem + hash_mem > aggstate -> hash_mem_limit ||
1850
+ (meta_mem + hashkey_mem > aggstate -> hash_mem_limit ||
1851
1851
ngroups > aggstate -> hash_ngroups_limit ))
1852
1852
{
1853
1853
hash_agg_enter_spill_mode (aggstate );
You can’t perform that action at this time.
0 commit comments