Skip to content

Commit 9dfd5ac

Browse files
committed
Add missing #ifdefs
1 parent b059b23 commit 9dfd5ac

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

pg_show_plans.c

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff 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

523537
static void

0 commit comments

Comments
 (0)