mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 00:03:57 -04:00 
			
		
		
		
	match_clause_to_index should check only key columns
Alexander Korotkov per gripe from Tom Lane noticed on valgrind-enabled buildfarm members
This commit is contained in:
		
							parent
							
								
									34602b0a1d
								
							
						
					
					
						commit
						02f3e558f2
					
				| @ -2244,8 +2244,8 @@ match_clause_to_index(IndexOptInfo *index, | ||||
| 	if (!restriction_is_securely_promotable(rinfo, index->rel)) | ||||
| 		return; | ||||
| 
 | ||||
| 	/* OK, check each index column for a match */ | ||||
| 	for (indexcol = 0; indexcol < index->ncolumns; indexcol++) | ||||
| 	/* OK, check each index key column for a match */ | ||||
| 	for (indexcol = 0; indexcol < index->nkeycolumns; indexcol++) | ||||
| 	{ | ||||
| 		if (match_clause_to_indexcol(index, | ||||
| 									 indexcol, | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user