@@ -4820,13 +4820,10 @@ rewrite_probability_events(const constants_t *constants, Query *q)
48204820static Expr *build_joint_width_provenance_expr(const constants_t *constants,
48214821 const char *desc, Expr *fallback)
48224822{
4823- FuncCandidateList fcl = FuncnameGetCandidates (
4823+ FuncCandidateList fcl = FuncnameGetCandidatesCompat (
48244824 list_make2(makeString("provsql"), makeString("ucq_joint_provenance")),
48254825 2, NIL, false, false,
4826- #if PG_VERSION_NUM >= 140000
4827- false,
4828- #endif
4829- false);
4826+ false, false);
48304827 FuncExpr *fe;
48314828 Const *c;
48324829 Datum jb;
@@ -4866,13 +4863,10 @@ static Expr *build_joint_width_provenance_expr(const constants_t *constants,
48664863static Expr *build_mobius_provenance_expr(const constants_t *constants,
48674864 const char *desc, Expr *fallback)
48684865{
4869- FuncCandidateList fcl = FuncnameGetCandidates (
4866+ FuncCandidateList fcl = FuncnameGetCandidatesCompat (
48704867 list_make2(makeString("provsql"), makeString("ucq_mobius_provenance")),
48714868 2, NIL, false, false,
4872- #if PG_VERSION_NUM >= 140000
4873- false,
4874- #endif
4875- false);
4869+ false, false);
48764870 FuncExpr *fe;
48774871 Const *c;
48784872 Datum jb;
@@ -4909,13 +4903,10 @@ static Expr *build_joint_width_answer_expr(const constants_t *constants,
49094903 const char *desc, List *head_var_idx,
49104904 List *head_exprs, Expr *fallback)
49114905{
4912- FuncCandidateList fcl = FuncnameGetCandidates (
4906+ FuncCandidateList fcl = FuncnameGetCandidatesCompat (
49134907 list_make2(makeString("provsql"), makeString("ucq_joint_provenance_answer")),
49144908 4, NIL, false, false,
4915- #if PG_VERSION_NUM >= 140000
4916- false,
4917- #endif
4918- false);
4909+ false, false);
49194910 FuncExpr *fe;
49204911 Const *desc_c, *hv_c;
49214912 ArrayExpr *vals;
@@ -4982,13 +4973,10 @@ static Expr *build_mobius_answer_expr(const constants_t *constants,
49824973 const char *desc, List *head_var_idx,
49834974 List *head_exprs, Expr *fallback)
49844975{
4985- FuncCandidateList fcl = FuncnameGetCandidates (
4976+ FuncCandidateList fcl = FuncnameGetCandidatesCompat (
49864977 list_make2(makeString("provsql"), makeString("ucq_mobius_provenance_answer")),
49874978 4, NIL, false, false,
4988- #if PG_VERSION_NUM >= 140000
4989- false,
4990- #endif
4991- false);
4979+ false, false);
49924980 FuncExpr *fe;
49934981 Const *desc_c, *hv_c;
49944982 ArrayExpr *vals;
@@ -5046,13 +5034,10 @@ static Expr *build_mobius_answer_expr(const constants_t *constants,
50465034 */
50475035static Expr *wrap_mobius_or_null(const constants_t *constants, Expr *mobius_call)
50485036{
5049- FuncCandidateList fcl = FuncnameGetCandidates (
5037+ FuncCandidateList fcl = FuncnameGetCandidatesCompat (
50505038 list_make2(makeString("provsql"), makeString("mobius_or_null")),
50515039 1, NIL, false, false,
5052- #if PG_VERSION_NUM >= 140000
5053- false,
5054- #endif
5055- false);
5040+ false, false);
50565041 FuncExpr *fe;
50575042
50585043 if (fcl == NULL)
@@ -14788,7 +14773,11 @@ static PlannedStmt *provsql_planner(Query *q,
1478814773 const char *query_string,
1478914774#endif
1479014775 int cursorOptions,
14791- ParamListInfo boundParams) {
14776+ ParamListInfo boundParams
14777+ #if PG_VERSION_NUM >= 190000
14778+ , ExplainState *es
14779+ #endif
14780+ ) {
1479214781 /* Scope the inert-fetch record to this rewrite (re-entrant: nested
1479314782 * planner invocations save and restore their own). */
1479414783 List *saved_inert_subselects = provsql_inert_subselects;
@@ -14890,13 +14879,21 @@ static PlannedStmt *provsql_planner(Query *q,
1489014879#if PG_VERSION_NUM >= 130000
1489114880 query_string,
1489214881#endif
14893- cursorOptions, boundParams);
14882+ cursorOptions, boundParams
14883+ #if PG_VERSION_NUM >= 190000
14884+ , es
14885+ #endif
14886+ );
1489414887 else
1489514888 return standard_planner(q,
1489614889#if PG_VERSION_NUM >= 130000
1489714890 query_string,
1489814891#endif
14899- cursorOptions, boundParams);
14892+ cursorOptions, boundParams
14893+ #if PG_VERSION_NUM >= 190000
14894+ , es
14895+ #endif
14896+ );
1490014897}
1490114898
1490214899/* -------------------------------------------------------------------------
0 commit comments