Skip to content

Commit 91506a3

Browse files
committed
Fix bug related with disabling hooks
1 parent 095eb98 commit 91506a3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/hooks.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -511,10 +511,7 @@ pathman_planner_hook(Query *parse, int cursorOptions, ParamListInfo boundParams)
511511
else
512512
result = standard_planner(parse, cursorOptions, boundParams);
513513

514-
if (!pathman_hooks_enabled)
515-
return result;
516-
517-
if (pathman_ready)
514+
if (pathman_ready && pathman_hooks_enabled)
518515
{
519516
/* Give rowmark-related attributes correct names */
520517
ExecuteForPlanTree(result, postprocess_lock_rows);

0 commit comments

Comments
 (0)