Skip to content

Commit

Permalink
fix build and execution for pg16, make check_GUC_init check happy
Browse files Browse the repository at this point in the history
  • Loading branch information
okbob committed Nov 22, 2022
1 parent 1b782e8 commit 87d76f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/expr_walk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1058,12 +1058,16 @@ contain_mutable_functions_walker(Node *node, void *context)
context))
return true;

#if PG_VERSION_NUM < 160000

if (IsA(node, SQLValueFunction))
{
/* all variants of SQLValueFunction are stable */
return true;
}

#endif

if (IsA(node, NextValueExpr))
{
/* NextValueExpr is volatile */
Expand Down
2 changes: 1 addition & 1 deletion src/profiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ static MemoryContext profiler_queryid_mcxt = NULL;
static profiler_stack *top_pinfo = NULL;
static ExprContext *curr_eval_econtext = NULL;

bool plpgsql_check_profiler = true;
bool plpgsql_check_profiler = false;

needs_fmgr_hook_type plpgsql_check_next_needs_fmgr_hook = NULL;
fmgr_hook_type plpgsql_check_next_fmgr_hook = NULL;
Expand Down

0 comments on commit 87d76f1

Please sign in to comment.