File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -502,11 +502,21 @@ pgsp_ExecutorStart(QueryDesc *queryDesc, int eflags)
502502 errcode (ERRCODE_OUT_OF_MEMORY ),
503503 errmsg ("not enough memory to append new query plans" ),
504504 errhint ("Try increasing 'pg_show_plans.max_plan_length'." ));
505- return ret_val ;
505+ return
506+ #if PG_VERSION_NUM >= 180000
507+ ret_val
508+ #endif
509+ ;
506510 }
507511
508512 if (!pgsp -> is_enabled )
509- return ret_val ;
513+ {
514+ return
515+ #if PG_VERSION_NUM >= 180000
516+ ret_val
517+ #endif
518+ ;
519+ }
510520
511521 es = NewExplainState ();
512522 es -> format = pgsp -> plan_format ;
@@ -517,7 +527,11 @@ pgsp_ExecutorStart(QueryDesc *queryDesc, int eflags)
517527 append_query_plan (es );
518528 pfree (es -> str -> data );
519529
520- return ret_val ;
530+ return
531+ #if PG_VERSION_NUM >= 180000
532+ ret_val
533+ #endif
534+ ;
521535}
522536
523537static void
You can’t perform that action at this time.
0 commit comments