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 @@ -73,7 +73,13 @@ static PlannedStmt *pgws_planner_hook(Query *parse,
73
73
const char * query_string ,
74
74
#endif
75
75
int cursorOptions , ParamListInfo boundParams );
76
- static void pgws_ExecutorStart (QueryDesc * queryDesc , int eflags );
76
+ static
77
+ #if PG_VERSION_NUM >= 180000
78
+ bool
79
+ #else
80
+ void
81
+ #endif
82
+ pgws_ExecutorStart (QueryDesc * queryDesc , int eflags );
77
83
static void pgws_ExecutorRun (QueryDesc * queryDesc ,
78
84
ScanDirection direction ,
79
85
uint64 count
@@ -965,16 +971,21 @@ pgws_planner_hook(Query *parse,
965
971
/*
966
972
* ExecutorStart hook: save queryId for collector
967
973
*/
968
- static void
974
+ static
975
+ #if PG_VERSION_NUM >= 180000
976
+ bool
977
+ #else
978
+ void
979
+ #endif
969
980
pgws_ExecutorStart (QueryDesc * queryDesc , int eflags )
970
981
{
971
982
int i = MyProc - ProcGlobal -> allProcs ;
972
983
if (pgws_enabled (nesting_level ))
973
984
pgws_proc_queryids [i ] = queryDesc -> plannedstmt -> queryId ;
974
985
if (prev_ExecutorStart )
975
- prev_ExecutorStart (queryDesc , eflags );
986
+ return prev_ExecutorStart (queryDesc , eflags );
976
987
else
977
- standard_ExecutorStart (queryDesc , eflags );
988
+ return standard_ExecutorStart (queryDesc , eflags );
978
989
}
979
990
980
991
static void
You can’t perform that action at this time.
0 commit comments