@@ -3583,7 +3583,7 @@ vops_substitute_tables_with_projections(char const* queryString, Query *query)
35833583&& bms_is_subset (pullvar_ctx .otherVars ,scalarAttrs ))/* variables used in other clauses can be only scalar */
35843584{
35853585List * parsetree_list ;
3586- #if PG_VERSION_NUM >=100006
3586+ #if PG_VERSION_NUM >=100000
35873587RawStmt * parsetree ;
35883588#else
35893589Node * parsetree ;
@@ -3598,7 +3598,7 @@ vops_substitute_tables_with_projections(char const* queryString, Query *query)
35983598MemoryContextSwitchTo (spi_memctx );
35993599break ;
36003600}
3601- #if PG_VERSION_NUM >=100006
3601+ #if PG_VERSION_NUM >=100000
36023602parsetree = linitial_node (RawStmt ,parsetree_list );
36033603select = (SelectStmt * )parsetree -> stmt ;
36043604#else
@@ -3642,7 +3642,7 @@ vops_substitute_tables_with_projections(char const* queryString, Query *query)
36423642PG_TRY ();
36433643{
36443644Query * subst = parse_analyze (parsetree ,queryString ,NULL ,0
3645- #if PG_VERSION_NUM >=100006
3645+ #if PG_VERSION_NUM >=100000
36463646 ,NULL
36473647#endif
36483648);
@@ -3723,7 +3723,7 @@ static void vops_explain_hook(Query *query,
37233723ParamListInfo params ,
37243724QueryEnvironment * queryEnv )
37253725{
3726- #elif PG_VERSION_NUM>=100006
3726+ #elif PG_VERSION_NUM>=100000
37273727static void vops_explain_hook (Query * query ,
37283728int cursorOptions ,
37293729IntoClause * into ,
@@ -3769,7 +3769,7 @@ static void vops_explain_hook(Query *query,
37693769
37703770/* run it (if needed) and produce output */
37713771ExplainOnePlan (plan ,into ,es ,queryString ,params ,
3772- #if PG_VERSION_NUM >=100006
3772+ #if PG_VERSION_NUM >=100000
37733773queryEnv ,
37743774#endif
37753775& planduration );