@@ -76,13 +76,7 @@ static PlannedStmt *pgws_planner_hook(Query *parse,
76
76
const char * query_string ,
77
77
#endif
78
78
int cursorOptions ,ParamListInfo boundParams );
79
- static
80
- #if PG_VERSION_NUM >=180000
81
- bool
82
- #else
83
- void
84
- #endif
85
- pgws_ExecutorStart (QueryDesc * queryDesc ,int eflags );
79
+ static void pgws_ExecutorStart (QueryDesc * queryDesc ,int eflags );
86
80
static void pgws_ExecutorRun (QueryDesc * queryDesc ,
87
81
ScanDirection direction ,
88
82
uint64 count
@@ -982,22 +976,17 @@ pgws_planner_hook(Query *parse,
982
976
/*
983
977
* ExecutorStart hook: save queryId for collector
984
978
*/
985
- static
986
- #if PG_VERSION_NUM >=180000
987
- bool
988
- #else
989
- void
990
- #endif
979
+ static void
991
980
pgws_ExecutorStart (QueryDesc * queryDesc ,int eflags )
992
981
{
993
982
int i = MyProc - ProcGlobal -> allProcs ;
994
983
995
984
if (pgws_enabled (nesting_level ))
996
985
pgws_proc_queryids [i ]= queryDesc -> plannedstmt -> queryId ;
997
986
if (prev_ExecutorStart )
998
- return prev_ExecutorStart (queryDesc ,eflags );
987
+ prev_ExecutorStart (queryDesc ,eflags );
999
988
else
1000
- return standard_ExecutorStart (queryDesc ,eflags );
989
+ standard_ExecutorStart (queryDesc ,eflags );
1001
990
}
1002
991
1003
992
static void