Skip to content

Commit 845b389

Browse files
committed
remove some artefacts for pre pg14 releases
1 parent d86a075 commit 845b389

File tree

3 files changed

+1
-24
lines changed

3 files changed

+1
-24
lines changed

src/check_expr.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -590,16 +590,8 @@ get_cached_plan(PLpgSQL_checkstate *cstate, PLpgSQL_expr *expr, bool *has_result
590590

591591
*has_result_desc = plansource->resultDesc ? true : false;
592592

593-
#if PG_VERSION_NUM >= 140000
594-
595593
cplan = GetCachedPlan(plansource, NULL, NULL, NULL);
596594

597-
#else
598-
599-
cplan = GetCachedPlan(plansource, NULL, true, NULL);
600-
601-
#endif
602-
603595
return cplan;
604596
}
605597

src/parser.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -271,12 +271,7 @@ plpgsql_check_parse_name_or_signature(char *name_or_signature)
271271
{
272272
FuncCandidateList clist;
273273

274-
#if PG_VERSION_NUM < 140000
275-
276-
clist = FuncnameGetCandidates(names, -1, NIL, false, false, true);
277-
278-
279-
#elif PG_VERSION_NUM < 190000
274+
#if PG_VERSION_NUM < 190000
280275

281276
clist = FuncnameGetCandidates(names, -1, NIL, false, false, false,
282277
true);

src/profiler.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -193,17 +193,7 @@ PG_FUNCTION_INFO_V1(plpgsql_profiler_remove_fake_queryid_hook);
193193
static void update_persistent_profile(profiler_info *pinfo, PLpgSQL_function *func, const int *stmtid_map);
194194
static PLpgSQL_expr *profiler_get_expr(PLpgSQL_stmt *stmt, bool *dynamic, List **params);
195195
static pc_queryid profiler_get_queryid(PLpgSQL_execstate *estate, PLpgSQL_stmt *stmt, bool *has_queryid, query_params **qparams);
196-
197-
#if PG_VERSION_NUM >= 140000
198-
199196
static void profiler_fake_queryid_hook(ParseState *pstate, Query *query, JumbleState *jstate);
200-
201-
#else
202-
203-
static void profiler_fake_queryid_hook(ParseState *pstate, Query *query);
204-
205-
#endif
206-
207197
static void stmts_walker(profiler_info *pinfo, profiler_stmt_walker_mode, List *stmts, PLpgSQL_stmt *parent_stmt,
208198
const char *description, profiler_stmt_walker_options *opts);
209199
static void profiler_stmt_walker(profiler_info *pinfo, profiler_stmt_walker_mode mode, PLpgSQL_stmt *stmt,

0 commit comments

Comments
 (0)