Skip to content

Commit

Permalink
Extend the ability of planner_node_transformer_hook to store the cont…
Browse files Browse the repository at this point in the history
…ext of expression being process
  • Loading branch information
Dipesh Dhameliya committed Nov 11, 2024
1 parent d01df35 commit 66c2c58
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/backend/optimizer/plan/planner.c
Original file line number Diff line number Diff line change
Expand Up @@ -1168,6 +1168,11 @@ preprocess_expression(PlannerInfo *root, Node *expr, int kind)
printf("After canonicalize_qual()\n");
pprint(expr);
#endif

/* Reset saved expression kind context */
if(EXPRKIND_TARGET == kind && planner_node_transformer_hook)
expr = planner_node_transformer_hook(root, NULL, -1);

}

/*
Expand Down

0 comments on commit 66c2c58

Please sign in to comment.