@@ -76,7 +76,11 @@ static PlannedStmt *pgws_planner_hook(Query *parse,
7676static void pgws_ExecutorStart (QueryDesc * queryDesc , int eflags );
7777static void pgws_ExecutorRun (QueryDesc * queryDesc ,
7878 ScanDirection direction ,
79- uint64 count , bool execute_once );
79+ uint64 count
80+ #if PG_VERSION_NUM >= 100000 && PG_VERSION_NUM < 180000
81+ , bool execute_once
82+ #endif
83+ );
8084static void pgws_ExecutorFinish (QueryDesc * queryDesc );
8185static void pgws_ExecutorEnd (QueryDesc * queryDesc );
8286static void pgws_ProcessUtility (PlannedStmt * pstmt ,
@@ -1036,7 +1040,11 @@ pgws_ExecutorStart(QueryDesc *queryDesc, int eflags)
10361040static void
10371041pgws_ExecutorRun (QueryDesc * queryDesc ,
10381042 ScanDirection direction ,
1039- uint64 count , bool execute_once )
1043+ uint64 count
1044+ #if PG_VERSION_NUM >= 100000 && PG_VERSION_NUM < 180000
1045+ , bool execute_once
1046+ #endif
1047+ )
10401048{
10411049 int i = MyProc - ProcGlobal -> allProcs ;
10421050 uint64 save_queryId = pgws_proc_queryids [i ];
@@ -1045,9 +1053,17 @@ pgws_ExecutorRun(QueryDesc *queryDesc,
10451053 PG_TRY ();
10461054 {
10471055 if (prev_ExecutorRun )
1056+ #if PG_VERSION_NUM >= 100000 && PG_VERSION_NUM < 180000
10481057 prev_ExecutorRun (queryDesc , direction , count , execute_once );
1058+ #else
1059+ prev_ExecutorRun (queryDesc , direction , count );
1060+ #endif
10491061 else
1062+ #if PG_VERSION_NUM >= 100000 && PG_VERSION_NUM < 180000
10501063 standard_ExecutorRun (queryDesc , direction , count , execute_once );
1064+ #else
1065+ standard_ExecutorRun (queryDesc , direction , count );
1066+ #endif
10511067 nesting_level -- ;
10521068 if (nesting_level == 0 )
10531069 pgws_proc_queryids [i ] = UINT64CONST (0 );
0 commit comments