File tree 1 file changed +15
-4
lines changed
1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,13 @@ static PlannedStmt *pgws_planner_hook(Query *parse,
76
76
const char * query_string ,
77
77
#endif
78
78
int cursorOptions , ParamListInfo boundParams );
79
- static void pgws_ExecutorStart (QueryDesc * queryDesc , int eflags );
79
+ static
80
+ #if PG_VERSION_NUM >= 180000
81
+ bool
82
+ #else
83
+ void
84
+ #endif
85
+ pgws_ExecutorStart (QueryDesc * queryDesc , int eflags );
80
86
static void pgws_ExecutorRun (QueryDesc * queryDesc ,
81
87
ScanDirection direction ,
82
88
uint64 count
@@ -976,17 +982,22 @@ pgws_planner_hook(Query *parse,
976
982
/*
977
983
* ExecutorStart hook: save queryId for collector
978
984
*/
979
- static void
985
+ static
986
+ #if PG_VERSION_NUM >= 180000
987
+ bool
988
+ #else
989
+ void
990
+ #endif
980
991
pgws_ExecutorStart (QueryDesc * queryDesc , int eflags )
981
992
{
982
993
int i = MyProc - ProcGlobal -> allProcs ;
983
994
984
995
if (pgws_enabled (nesting_level ))
985
996
pgws_proc_queryids [i ] = queryDesc -> plannedstmt -> queryId ;
986
997
if (prev_ExecutorStart )
987
- prev_ExecutorStart (queryDesc , eflags );
998
+ return prev_ExecutorStart (queryDesc , eflags );
988
999
else
989
- standard_ExecutorStart (queryDesc , eflags );
1000
+ return standard_ExecutorStart (queryDesc , eflags );
990
1001
}
991
1002
992
1003
static void
You can’t perform that action at this time.
0 commit comments