From: Kyotaro Horiguchi Date: Wed, 9 Jan 2019 00:35:41 +0000 (+0900) Subject: Call standrad_ProcessUtility when no hook is set X-Git-Tag: REL12_1_3_5~30 X-Git-Url: http://git.osdn.net/view?p=pghintplan%2Fpg_hint_plan.git;a=commitdiff_plain;h=5f4e855229fda25d0c5378550002e4f0e91c39bd Call standrad_ProcessUtility when no hook is set The last commit d5ec243 forgot the case of no previous hook function in the ProcessUtility hook function. Fix it. --- diff --git a/pg_hint_plan.c b/pg_hint_plan.c index e050672..15fc8a1 100644 --- a/pg_hint_plan.c +++ b/pg_hint_plan.c @@ -2967,6 +2967,9 @@ pg_hint_plan_ProcessUtility(PlannedStmt *pstmt, const char *queryString, if (prev_ProcessUtility_hook) prev_ProcessUtility_hook(pstmt, queryString, context, params, queryEnv, dest, completionTag); + else + standard_ProcessUtility(pstmt, queryString, context, params, queryEnv, + dest, completionTag); if (plpgsql_recurse_level == 0) current_hint_retrieved = false;