Skip to content

Commit 6f0ee40

Browse files
committed
invoke original planner hook
1 parent f7ecc0c commit 6f0ee40

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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)