File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 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,
7373 const char * query_string ,
7474#endif
7575 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 );
7783static void pgws_ExecutorRun (QueryDesc * queryDesc ,
7884 ScanDirection direction ,
7985 uint64 count
@@ -965,16 +971,21 @@ pgws_planner_hook(Query *parse,
965971/*
966972 * ExecutorStart hook: save queryId for collector
967973 */
968- static void
974+ static
975+ #if PG_VERSION_NUM >= 180000
976+ bool
977+ #else
978+ void
979+ #endif
969980pgws_ExecutorStart (QueryDesc * queryDesc , int eflags )
970981{
971982 int i = MyProc - ProcGlobal -> allProcs ;
972983 if (pgws_enabled (nesting_level ))
973984 pgws_proc_queryids [i ] = queryDesc -> plannedstmt -> queryId ;
974985 if (prev_ExecutorStart )
975- prev_ExecutorStart (queryDesc , eflags );
986+ return prev_ExecutorStart (queryDesc , eflags );
976987 else
977- standard_ExecutorStart (queryDesc , eflags );
988+ return standard_ExecutorStart (queryDesc , eflags );
978989}
979990
980991static void
You can’t perform that action at this time.
0 commit comments