Skip to content

Commit 8098e61

Browse files
committed
pathman: invoke original planner hook
1 parent 2aaae1e commit 8098e61

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

contrib/pg_pathman/pg_pathman.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,12 @@ pathman_planner_hook(Query *parse, int cursorOptions, ParamListInfo boundParams)
195195

196196
inheritance_disabled = false;
197197
disable_inheritance(parse);
198-
result = standard_planner(parse, cursorOptions, boundParams);
199198

200-
/* TODO: invoke original hook */
199+
/* Invoke original hook */
200+
if (planner_hook_original)
201+
result = planner_hook_original(parse, cursorOptions, boundParams);
202+
else
203+
result = standard_planner(parse, cursorOptions, boundParams);
201204

202205
return result;
203206
}

0 commit comments

Comments
 (0)