@@ -600,7 +600,7 @@ aqo_ExecutorStart(QueryDesc *queryDesc, int eflags)
600600 StoreToQueryEnv (queryDesc );
601601 }
602602
603- aqo_ExecutorStart_next (queryDesc , eflags );
603+ ( * aqo_ExecutorStart_next ) (queryDesc , eflags );
604604
605605 if (use_aqo )
606606 StorePlanInternals (queryDesc );
@@ -725,7 +725,7 @@ aqo_ExecutorRun(QueryDesc *queryDesc, ScanDirection direction, uint64 count,
725725
726726 PG_TRY ();
727727 {
728- aqo_ExecutorRun_next (queryDesc , direction , count , execute_once );
728+ ( * aqo_ExecutorRun_next ) (queryDesc , direction , count , execute_once );
729729 }
730730 PG_FINALLY ();
731731 {
@@ -841,7 +841,7 @@ aqo_ExecutorEnd(QueryDesc *queryDesc)
841841 MemoryContextSwitchTo (oldctx );
842842 MemoryContextReset (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,
982982 QueryEnvironment * queryEnv )
983983{
984984 if (aqo_ExplainOnePlan_next )
985- aqo_ExplainOnePlan_next (plannedstmt , into , es , queryString ,
985+ ( * aqo_ExplainOnePlan_next ) (plannedstmt , into , es , queryString ,
986986 params , planduration , queryEnv );
987987
988988 if (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. */
10401040 if (aqo_ExplainOneNode_next )
1041- aqo_ExplainOneNode_next (es , ps , plan );
1041+ ( * aqo_ExplainOneNode_next ) (es , ps , plan );
10421042
10431043 if (IsQueryDisabled () || !plan || es -> format != EXPLAIN_FORMAT_TEXT )
10441044 return ;
0 commit comments