Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c49c74d

Browse filesBrowse files
Rename another "hash_mem" local variable.
Missed by my commit 564ce62. Backpatch: 13-, where disk-based hash aggregation was introduced.
1 parent b1d7912 commit c49c74d
Copy full SHA for c49c74d

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎src/backend/executor/nodeAgg.c

Copy file name to clipboardExpand all lines: src/backend/executor/nodeAgg.c
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1839,15 +1839,15 @@ hash_agg_check_limits(AggState *aggstate)
18391839
uint64 ngroups = aggstate->hash_ngroups_current;
18401840
Size meta_mem = MemoryContextMemAllocated(aggstate->hash_metacxt,
18411841
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);
18441844

18451845
/*
18461846
* Don't spill unless there's at least one group in the hash table so we
18471847
* can be sure to make progress even in edge cases.
18481848
*/
18491849
if (aggstate->hash_ngroups_current > 0 &&
1850-
(meta_mem + hash_mem > aggstate->hash_mem_limit ||
1850+
(meta_mem + hashkey_mem > aggstate->hash_mem_limit ||
18511851
ngroups > aggstate->hash_ngroups_limit))
18521852
{
18531853
hash_agg_enter_spill_mode(aggstate);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.