Skip to content

Commit bd900b9

Browse files
author
Rucha Kulkarni
committed
Adding hook check for right operand also
Signed-off-by: Rucha Kulkarni <ruchask@amazon.com>
1 parent c15e060 commit bd900b9

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/backend/optimizer/path/indxpath.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3011,12 +3011,17 @@ match_opclause_to_indexcol(PlannerInfo *root,
30113011
* function for the operator's underlying function.
30123012
*/
30133013
set_opfuncid(clause); /* make sure we have opfuncid */
3014-
return get_index_clause_from_support(root,
3014+
iclause = get_index_clause_from_support(root,
30153015
rinfo,
30163016
clause->opfuncid,
30173017
1, /* indexarg on right */
30183018
indexcol,
30193019
index);
3020+
if (iclause)
3021+
return iclause;
3022+
if (match_opclause_to_indexcol_hook)
3023+
return match_opclause_to_indexcol_hook(root, rinfo, indexcol, index);
3024+
return NULL;
30203025
}
30213026

30223027
return NULL;

0 commit comments

Comments
 (0)