mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-30 00:04:49 -04:00 
			
		
		
		
	Rename another "hash_mem" local variable.
Missed by my commit 564ce621. Backpatch: 13-, where disk-based hash aggregation was introduced.
This commit is contained in:
		
							parent
							
								
									b1d79127ed
								
							
						
					
					
						commit
						c49c74d192
					
				| @ -1839,15 +1839,15 @@ hash_agg_check_limits(AggState *aggstate) | |||||||
| 	uint64		ngroups = aggstate->hash_ngroups_current; | 	uint64		ngroups = aggstate->hash_ngroups_current; | ||||||
| 	Size		meta_mem = MemoryContextMemAllocated(aggstate->hash_metacxt, | 	Size		meta_mem = MemoryContextMemAllocated(aggstate->hash_metacxt, | ||||||
| 													 true); | 													 true); | ||||||
| 	Size		hash_mem = MemoryContextMemAllocated(aggstate->hashcontext->ecxt_per_tuple_memory, | 	Size		hashkey_mem = MemoryContextMemAllocated(aggstate->hashcontext->ecxt_per_tuple_memory, | ||||||
| 													 true); | 														true); | ||||||
| 
 | 
 | ||||||
| 	/*
 | 	/*
 | ||||||
| 	 * Don't spill unless there's at least one group in the hash table so we | 	 * Don't spill unless there's at least one group in the hash table so we | ||||||
| 	 * can be sure to make progress even in edge cases. | 	 * can be sure to make progress even in edge cases. | ||||||
| 	 */ | 	 */ | ||||||
| 	if (aggstate->hash_ngroups_current > 0 && | 	if (aggstate->hash_ngroups_current > 0 && | ||||||
| 		(meta_mem + hash_mem > aggstate->hash_mem_limit || | 		(meta_mem + hashkey_mem > aggstate->hash_mem_limit || | ||||||
| 		 ngroups > aggstate->hash_ngroups_limit)) | 		 ngroups > aggstate->hash_ngroups_limit)) | ||||||
| 	{ | 	{ | ||||||
| 		hash_agg_enter_spill_mode(aggstate); | 		hash_agg_enter_spill_mode(aggstate); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user