Skip to content

Commit 110339c

Browse files
committed
fix older releases broken by yesterad's commit
1 parent f985986 commit 110339c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/profiler.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2811,10 +2811,15 @@ plpgsql_check_profiler_func_init(PLpgSQL_execstate *estate, PLpgSQL_function *fu
28112811
{
28122812
prev_plpgsql_plugin->error_callback = (*plpgsql_check_plugin_var_ptr)->error_callback;
28132813
prev_plpgsql_plugin->assign_expr = (*plpgsql_check_plugin_var_ptr)->assign_expr;
2814+
2815+
#if PG_VERSION_NUM >= 150000
2816+
28142817
prev_plpgsql_plugin->assign_value = (*plpgsql_check_plugin_var_ptr)->assign_value;
28152818
prev_plpgsql_plugin->eval_datum = (*plpgsql_check_plugin_var_ptr)->eval_datum;
28162819
prev_plpgsql_plugin->cast_value = (*plpgsql_check_plugin_var_ptr)->cast_value;
28172820

2821+
#endif
2822+
28182823
pinfo = init_profiler_info(pinfo, func);
28192824

28202825
PG_TRY();

0 commit comments

Comments
 (0)