@@ -76,7 +76,11 @@ static PlannedStmt *pgws_planner_hook(Query *parse,
76
76
static void pgws_ExecutorStart (QueryDesc * queryDesc , int eflags );
77
77
static void pgws_ExecutorRun (QueryDesc * queryDesc ,
78
78
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
+ );
80
84
static void pgws_ExecutorFinish (QueryDesc * queryDesc );
81
85
static void pgws_ExecutorEnd (QueryDesc * queryDesc );
82
86
static void pgws_ProcessUtility (PlannedStmt * pstmt ,
@@ -1036,7 +1040,11 @@ pgws_ExecutorStart(QueryDesc *queryDesc, int eflags)
1036
1040
static void
1037
1041
pgws_ExecutorRun (QueryDesc * queryDesc ,
1038
1042
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
+ )
1040
1048
{
1041
1049
int i = MyProc - ProcGlobal -> allProcs ;
1042
1050
uint64 save_queryId = pgws_proc_queryids [i ];
@@ -1045,9 +1053,17 @@ pgws_ExecutorRun(QueryDesc *queryDesc,
1045
1053
PG_TRY ();
1046
1054
{
1047
1055
if (prev_ExecutorRun )
1056
+ #if PG_VERSION_NUM >= 100000 && PG_VERSION_NUM < 180000
1048
1057
prev_ExecutorRun (queryDesc , direction , count , execute_once );
1058
+ #else
1059
+ prev_ExecutorRun (queryDesc , direction , count );
1060
+ #endif
1049
1061
else
1062
+ #if PG_VERSION_NUM >= 100000 && PG_VERSION_NUM < 180000
1050
1063
standard_ExecutorRun (queryDesc , direction , count , execute_once );
1064
+ #else
1065
+ standard_ExecutorRun (queryDesc , direction , count );
1066
+ #endif
1051
1067
nesting_level -- ;
1052
1068
if (nesting_level == 0 )
1053
1069
pgws_proc_queryids [i ] = UINT64CONST (0 );
0 commit comments