@@ -600,7 +600,7 @@ aqo_ExecutorStart(QueryDesc *queryDesc, int eflags)
600600StoreToQueryEnv (queryDesc );
601601}
602602
603- aqo_ExecutorStart_next (queryDesc ,eflags );
603+ ( * aqo_ExecutorStart_next ) (queryDesc ,eflags );
604604
605605if (use_aqo )
606606StorePlanInternals (queryDesc );
@@ -725,7 +725,7 @@ aqo_ExecutorRun(QueryDesc *queryDesc, ScanDirection direction, uint64 count,
725725
726726PG_TRY ();
727727{
728- aqo_ExecutorRun_next (queryDesc ,direction ,count ,execute_once );
728+ ( * aqo_ExecutorRun_next ) (queryDesc ,direction ,count ,execute_once );
729729}
730730PG_FINALLY ();
731731{
@@ -841,7 +841,7 @@ aqo_ExecutorEnd(QueryDesc *queryDesc)
841841MemoryContextSwitchTo (oldctx );
842842MemoryContextReset (AQOLearnMemCtx );
843843
844- aqo_ExecutorEnd_next (queryDesc );
844+ ( * aqo_ExecutorEnd_next ) (queryDesc );
845845
846846/*
847847 * standard_ExecutorEnd clears the queryDesc->planstate. After this point no
@@ -982,7 +982,7 @@ print_into_explain(PlannedStmt *plannedstmt, IntoClause *into,
982982QueryEnvironment * queryEnv )
983983{
984984if (aqo_ExplainOnePlan_next )
985- aqo_ExplainOnePlan_next (plannedstmt ,into ,es ,queryString ,
985+ ( * aqo_ExplainOnePlan_next ) (plannedstmt ,into ,es ,queryString ,
986986params ,planduration ,queryEnv );
987987
988988if (IsQueryDisabled ()|| !aqo_show_details )
@@ -1038,7 +1038,7 @@ print_node_explain(ExplainState *es, PlanState *ps, Plan *plan)
10381038
10391039/* Extension, which took a hook early can be executed early too. */
10401040if (aqo_ExplainOneNode_next )
1041- aqo_ExplainOneNode_next (es ,ps ,plan );
1041+ ( * aqo_ExplainOneNode_next ) (es ,ps ,plan );
10421042
10431043if (IsQueryDisabled ()|| !plan || es -> format != EXPLAIN_FORMAT_TEXT )
10441044return ;