@@ -75,7 +75,11 @@ static PlannedStmt *pgws_planner_hook(Query *parse,
7575#if PG_VERSION_NUM >=130000
7676const char * query_string ,
7777#endif
78- int cursorOptions ,ParamListInfo boundParams );
78+ int cursorOptions ,ParamListInfo boundParams
79+ #if PG_VERSION_NUM >=190000
80+ ,ExplainState * es
81+ #endif
82+ );
7983static void pgws_ExecutorStart (QueryDesc * queryDesc ,int eflags );
8084static void pgws_ExecutorRun (QueryDesc * queryDesc ,
8185ScanDirection direction ,
@@ -937,7 +941,11 @@ pgws_planner_hook(Query *parse,
937941const char * query_string ,
938942#endif
939943int cursorOptions ,
940- ParamListInfo boundParams )
944+ ParamListInfo boundParams
945+ #if PG_VERSION_NUM >=190000
946+ ,ExplainState * es
947+ #endif
948+ )
941949{
942950PlannedStmt * result ;
943951int i = MyProc - ProcGlobal -> allProcs ;
@@ -958,13 +966,21 @@ pgws_planner_hook(Query *parse,
958966#if PG_VERSION_NUM >=130000
959967query_string ,
960968#endif
961- cursorOptions ,boundParams );
969+ cursorOptions ,boundParams
970+ #if PG_VERSION_NUM >=190000
971+ ,es
972+ #endif
973+ );
962974else
963975result = standard_planner (parse ,
964976#if PG_VERSION_NUM >=130000
965977query_string ,
966978#endif
967- cursorOptions ,boundParams );
979+ cursorOptions ,boundParams
980+ #if PG_VERSION_NUM >=190000
981+ ,es
982+ #endif
983+ );
968984nesting_level -- ;
969985if (nesting_level == 0 )
970986pgws_proc_queryids [i ]= UINT64CONST (0 );