We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34602b0 commit 02f3e55Copy full SHA for 02f3e55
src/backend/optimizer/path/indxpath.c
@@ -2244,8 +2244,8 @@ match_clause_to_index(IndexOptInfo *index,
2244
if (!restriction_is_securely_promotable(rinfo, index->rel))
2245
return;
2246
2247
- /* OK, check each index column for a match */
2248
- for (indexcol = 0; indexcol < index->ncolumns; indexcol++)
+ /* OK, check each index key column for a match */
+ for (indexcol = 0; indexcol < index->nkeycolumns; indexcol++)
2249
{
2250
if (match_clause_to_indexcol(index,
2251
indexcol,
0 commit comments