67 Datum *resv,
bool *resnull);
69 Oid funcid,
Oid inputcollid,
80 Datum *resv,
bool *resnull);
84 Datum *resv,
bool *resnull);
88 int transno,
int setno,
int setoff,
bool ishash,
139 state->parent = parent;
140 state->ext_params = NULL;
176 state->parent = NULL;
177 state->ext_params = ext_params;
227 state->parent = parent;
228 state->ext_params = NULL;
260 state->steps_len - 1);
370 state->parent = parent;
371 state->ext_params = NULL;
373 state->resultslot = slot;
379 foreach(lc, targetList)
384 bool isSafeVar =
false;
394 if (tle->
expr != NULL &&
396 ((
Var *) tle->
expr)->varattno > 0)
402 if (inputDesc == NULL)
404 else if (attnum <= inputDesc->natts)
413 if (!attr->attisdropped &&
variable->vartype == attr->atttypid)
541 state->parent = parent;
542 state->ext_params = NULL;
544 state->resultslot = slot;
552 foreach(lc, targetList)
561 elog(
ERROR,
"subplan target list is out of order");
568 elog(
ERROR,
"targetColnos does not match subplan target list");
576 foreach(lc, targetColnos)
592 if (attr->attisdropped)
620 forboth(lc, targetList, lc2, targetColnos)
631 if (targetattnum <= 0 || targetattnum > relDesc->
natts)
633 (
errcode(ERRCODE_DATATYPE_MISMATCH),
634 errmsg(
"table row type and query-specified row type do not match"),
635 errdetail(
"Query has too many columns.")));
638 if (attr->attisdropped)
640 (
errcode(ERRCODE_DATATYPE_MISMATCH),
641 errmsg(
"table row type and query-specified row type do not match"),
642 errdetail(
"Query provides a value for a dropped column at ordinal position %d.",
646 (
errcode(ERRCODE_DATATYPE_MISMATCH),
647 errmsg(
"table row type and query-specified row type do not match"),
648 errdetail(
"Table has type %s at ordinal position %d, but query expects %s.",
688 if (attr->attisdropped)
887 Datum *resv,
bool *resnull)
895 Assert(resv != NULL && resnull != NULL);
963 scratch.
d.
constval.value = con->constvalue;
964 scratch.
d.
constval.isnull = con->constisnull;
991 if (
state->ext_params)
992 params =
state->ext_params;
993 else if (
state->parent &&
994 state->parent->state)
995 params =
state->parent->state->es_param_list_info;
1012 elog(
ERROR,
"unrecognized paramkind: %d",
1024 scratch.
d.
aggref.aggno = aggref->aggno;
1035 elog(
ERROR,
"Aggref found in non-Agg plan node");
1042 case T_GroupingFunc:
1049 elog(
ERROR,
"GroupingFunc found in non-Agg plan node");
1053 agg = (
Agg *) (
state->parent->plan);
1069 wfstate->
wfunc = wfunc;
1095 (
errcode(ERRCODE_WINDOWING_ERROR),
1096 errmsg(
"window function calls cannot be nested")));
1101 elog(
ERROR,
"WindowFunc found in non-WindowAgg plan node");
1110 case T_MergeSupportFunc:
1113 if (!
state->parent ||
1116 elog(
ERROR,
"MergeSupportFunc found in non-merge plan node");
1123 case T_SubscriptingRef:
1147 op->
args, op->opfuncid, op->inputcollid,
1153 case T_DistinctExpr:
1158 op->
args, op->opfuncid, op->inputcollid,
1180 op->
args, op->opfuncid, op->inputcollid,
1197 case T_ScalarArrayOpExpr:
1216 cmpfuncid = opexpr->negfuncid;
1219 cmpfuncid = opexpr->opfuncid;
1251 opexpr->inputcollid, NULL, NULL);
1338 foreach(lc, boolexpr->
args)
1346 switch (boolexpr->
boolop)
1353 else if (off + 1 == nargs)
1363 else if (off + 1 == nargs)
1382 state->steps_len - 1);
1387 foreach(lc, adjust_jumps)
1419 elog(
ERROR,
"SubPlan found with no parent plan");
1444 scratch.
d.
fieldselect.resulttype = fselect->resulttype;
1464 ncolumns = tupDesc->
natts;
1469 nulls = (
bool *)
palloc(
sizeof(
bool) * ncolumns);
1492 Datum *save_innermost_caseval;
1493 bool *save_innermost_casenull;
1495 if (fieldnum <= 0 || fieldnum > ncolumns)
1496 elog(
ERROR,
"field number %d is out of range in FieldStore",
1523 save_innermost_caseval =
state->innermost_caseval;
1524 save_innermost_casenull =
state->innermost_casenull;
1526 state->innermost_casenull = &nulls[fieldnum - 1];
1530 &nulls[fieldnum - 1]);
1532 state->innermost_caseval = save_innermost_caseval;
1533 state->innermost_casenull = save_innermost_casenull;
1575 if (
state->escontext == NULL)
1585 &iofunc, &typisvarlena);
1597 &iofunc, &typioparam);
1608 fcinfo_in = scratch.
d.
iocoerce.fcinfo_data_in;
1620 case T_ArrayCoerceExpr:
1632 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
1633 errmsg(
"target type is not an array")));
1687 case T_ConvertRowtypeExpr:
1718 Datum *caseval = NULL;
1719 bool *casenull = NULL;
1727 if (caseExpr->
arg != NULL)
1731 casenull =
palloc(
sizeof(
bool));
1761 foreach(lc, caseExpr->
args)
1764 Datum *save_innermost_caseval;
1765 bool *save_innermost_casenull;
1778 save_innermost_caseval =
state->innermost_caseval;
1779 save_innermost_casenull =
state->innermost_casenull;
1780 state->innermost_caseval = caseval;
1781 state->innermost_casenull = casenull;
1786 state->innermost_caseval = save_innermost_caseval;
1787 state->innermost_casenull = save_innermost_casenull;
1791 scratch.
d.
jump.jumpdone = -1;
1793 whenstep =
state->steps_len - 1;
1803 scratch.
d.
jump.jumpdone = -1;
1811 state->steps_len - 1);
1817 state->steps[whenstep].d.jump.jumpdone =
state->steps_len;
1828 foreach(lc, adjust_jumps)
1840 case T_CaseTestExpr:
1875 (
bool *)
palloc(
sizeof(
bool) * nelems);
1879 scratch.
d.
arrayexpr.multidims = arrayexpr->multidims;
1880 scratch.
d.
arrayexpr.elemtype = arrayexpr->element_typeid;
1914 if (rowexpr->row_typeid == RECORDOID)
1937 Assert(nelems <= tupdesc->natts);
1938 nelems =
Max(nelems, tupdesc->
natts);
1945 scratch.
d.
row.tupdesc = tupdesc;
1948 scratch.
d.
row.elemvalues =
1950 scratch.
d.
row.elemnulls =
1951 (
bool *)
palloc(
sizeof(
bool) * nelems);
1953 memset(scratch.
d.
row.elemnulls,
true,
sizeof(
bool) * nelems);
1957 foreach(l, rowexpr->
args)
1962 if (!att->attisdropped)
1972 (
errcode(ERRCODE_DATATYPE_MISMATCH),
1973 errmsg(
"ROW() column has type %s instead of type %s",
1989 &scratch.
d.
row.elemvalues[
i],
1990 &scratch.
d.
row.elemnulls[
i]);
1999 case T_RowCompareExpr:
2022 l_right_expr, rcexpr->
rargs,
2023 l_opno, rcexpr->opnos,
2024 l_opfamily, rcexpr->opfamilies,
2025 l_inputcollid, rcexpr->inputcollids)
2048 elog(
ERROR,
"missing support function %d(%u,%u) in opfamily %u",
2057 inputcollid, NULL, NULL);
2082 state->steps_len - 1);
2103 foreach(lc, adjust_jumps)
2120 case T_CoalesceExpr:
2133 foreach(lc, coalesce->
args)
2142 scratch.
d.
jump.jumpdone = -1;
2146 state->steps_len - 1);
2156 foreach(lc, adjust_jumps)
2183 (
errcode(ERRCODE_UNDEFINED_FUNCTION),
2184 errmsg(
"could not identify a comparison function for type %s",
2200 minmaxexpr->inputcollid, NULL, NULL);
2207 (
bool *)
palloc(
sizeof(
bool) * nelems);
2208 scratch.
d.
minmax.nelems = nelems;
2211 scratch.
d.
minmax.finfo = finfo;
2212 scratch.
d.
minmax.fcinfo_data = fcinfo;
2216 foreach(lc, minmaxexpr->
args)
2221 &scratch.
d.
minmax.values[off],
2222 &scratch.
d.
minmax.nulls[off]);
2231 case T_SQLValueFunction:
2259 (
bool *)
palloc(
sizeof(
bool) * nnamed);
2263 scratch.
d.
xmlexpr.named_argvalue = NULL;
2264 scratch.
d.
xmlexpr.named_argnull = NULL;
2272 (
bool *)
palloc(
sizeof(
bool) * nargs);
2287 &scratch.
d.
xmlexpr.named_argvalue[off],
2288 &scratch.
d.
xmlexpr.named_argnull[off]);
2308 case T_JsonValueExpr:
2317 case T_JsonConstructorExpr:
2348 jcstate->
nargs = nargs;
2361 jcstate->
arg_values[argno] = con->constvalue;
2362 jcstate->
arg_nulls[argno] = con->constisnull;
2382 for (
int i = 0;
i < nargs;
i++)
2389 &category, &outfuncid);
2401 Datum *innermost_caseval =
state->innermost_caseval;
2402 bool *innermost_isnull =
state->innermost_casenull;
2404 state->innermost_caseval = resv;
2405 state->innermost_casenull = resnull;
2409 state->innermost_caseval = innermost_caseval;
2410 state->innermost_casenull = innermost_isnull;
2415 case T_JsonIsPredicate:
2434 if (ntest->argisrow)
2441 if (ntest->argisrow)
2448 elog(
ERROR,
"unrecognized nulltesttype: %d",
2498 elog(
ERROR,
"unrecognized booltesttype: %d",
2506 case T_CoerceToDomain:
2515 case T_CoerceToDomainValue:
2534 case T_CurrentOfExpr:
2541 case T_NextValueExpr:
2554 elog(
ERROR,
"unrecognized node type: %d",
2617 (
errcode(ERRCODE_TOO_MANY_ARGUMENTS),
2618 errmsg_plural(
"cannot pass more than %d argument to a function",
2619 "cannot pass more than %d arguments to a function",
2626 flinfo = scratch->
d.
func.finfo;
2627 fcinfo = scratch->
d.
func.fcinfo_data;
2635 nargs, inputcollid, NULL, NULL);
2639 scratch->
d.
func.nargs = nargs;
2644 (
errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
2645 errmsg(
"set-valued function called in context that cannot accept a set"),
2664 fcinfo->
args[argno].
value = con->constvalue;
2665 fcinfo->
args[argno].
isnull = con->constisnull;
2677 if (pgstat_track_functions <= flinfo->fn_stats)
2730 scratch.
d.
fetch.fixed =
false;
2731 scratch.
d.
fetch.kind = NULL;
2732 scratch.
d.
fetch.known_desc = NULL;
2740 scratch.
d.
fetch.fixed =
false;
2741 scratch.
d.
fetch.kind = NULL;
2742 scratch.
d.
fetch.known_desc = NULL;
2750 scratch.
d.
fetch.fixed =
false;
2751 scratch.
d.
fetch.kind = NULL;
2752 scratch.
d.
fetch.known_desc = NULL;
2774 elog(
ERROR,
"SubPlan found with no parent plan");
2866 bool isfixed =
false;
2873 if (op->
d.
fetch.known_desc != NULL)
2875 desc = op->
d.
fetch.known_desc;
2876 tts_ops = op->
d.
fetch.kind;
2877 isfixed = op->
d.
fetch.kind != NULL;
2934 if (isfixed && desc != NULL && tts_ops != NULL)
2936 op->
d.
fetch.fixed =
true;
2937 op->
d.
fetch.kind = tts_ops;
2938 op->
d.
fetch.known_desc = desc;
2942 op->
d.
fetch.fixed =
false;
2944 op->
d.
fetch.known_desc = NULL;
2989 case T_SubqueryScanState:
2992 case T_CteScanState:
3001 bool junk_filter_needed =
false;
3011 junk_filter_needed =
true;
3017 if (junk_filter_needed)
3050 (
errcode(ERRCODE_DATATYPE_MISMATCH),
3051 errmsg(
"cannot subscript type %s because it does not support subscripting",
3059 (nupper + nlower) * (
sizeof(
Datum) +
3069 ptr += nupper *
sizeof(
Datum);
3071 ptr += nlower *
sizeof(
Datum);
3073 ptr += nupper *
sizeof(
bool);
3075 ptr += nlower *
sizeof(
bool);
3077 ptr += nupper *
sizeof(
bool);
3087 memset(&methods, 0,
sizeof(methods));
3088 sbsroutines->
exec_setup(sbsref, sbsrefstate, &methods);
3106 scratch->
d.
jump.jumpdone = -1;
3109 state->steps_len - 1);
3167 state->steps_len - 1);
3172 Datum *save_innermost_caseval;
3173 bool *save_innermost_casenull;
3178 (
errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
3179 errmsg(
"type %s does not support subscripted assignment",
3200 (
errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
3201 errmsg(
"type %s does not support subscripted assignment",
3205 scratch->
d.
sbsref.state = sbsrefstate;
3210 save_innermost_caseval =
state->innermost_caseval;
3211 save_innermost_casenull =
state->innermost_casenull;
3219 state->innermost_caseval = save_innermost_caseval;
3220 state->innermost_casenull = save_innermost_casenull;
3225 scratch->
d.
sbsref.state = sbsrefstate;
3233 scratch->
d.
sbsref.state = sbsrefstate;
3238 foreach(lc, adjust_jumps)
3315 Datum *domainval = NULL;
3316 bool *domainnull = NULL;
3364 Datum *save_innermost_domainval;
3365 bool *save_innermost_domainnull;
3382 (
bool *)
palloc(
sizeof(
bool));
3389 if (domainval == NULL)
3401 domainnull = (
bool *)
palloc(
sizeof(
bool));
3406 scratch2.
resnull = domainnull;
3415 domainnull = resnull;
3425 save_innermost_domainval =
state->innermost_domainval;
3426 save_innermost_domainnull =
state->innermost_domainnull;
3427 state->innermost_domainval = domainval;
3428 state->innermost_domainnull = domainnull;
3435 state->innermost_domainval = save_innermost_domainval;
3436 state->innermost_domainnull = save_innermost_domainnull;
3444 elog(
ERROR,
"unrecognized constraint type: %d",
3467 bool doSort,
bool doHash,
bool nullcheck)
3476 state->parent = parent;
3485 for (
int transno = 0; transno < aggstate->
numtrans; transno++)
3505 for (
int transno = 0; transno < aggstate->
numtrans; transno++)
3511 bool *strictnulls = NULL;
3528 scratch.
d.
jump.jumpdone = -1;
3531 state->steps_len - 1);
3550 strictargs = trans_fcinfo->
args + 1;
3598 state->steps_len - 1);
3617 strictargs = trans_fcinfo->
args + 1;
3655 strictnulls = &
state->resnull;
3670 strictnulls = nulls;
3677 &
values[argno], &nulls[argno]);
3700 state->steps_len - 1);
3715 state->steps_len - 1);
3725 int processGroupingSets =
Max(phase->
numsets, 1);
3728 for (
int setno = 0; setno < processGroupingSets; setno++)
3731 pertrans, transno, setno, setoff,
false,
3748 for (
int setno = 0; setno < numHashes; setno++)
3751 pertrans, transno, setno, setoff,
true,
3758 foreach(
bail, adjust_bailout)
3808 int transno,
int setno,
int setoff,
bool ishash,
3812 int adjust_jumpnull = -1;
3827 adjust_jumpnull =
state->steps_len - 1;
3896 scratch->
d.
agg_trans.aggcontext = aggcontext;
3900 if (adjust_jumpnull != -1)
3926 const Oid *eqfunctions,
3927 const Oid *collations,
3945 state->parent = parent;
3951 for (
int natt = 0; natt < numCols; natt++)
3953 int attno = keyColIdx[natt];
3962 scratch.
d.
fetch.last_var = maxatt;
3963 scratch.
d.
fetch.fixed =
false;
3964 scratch.
d.
fetch.known_desc = ldesc;
3965 scratch.
d.
fetch.kind = lops;
3970 scratch.
d.
fetch.last_var = maxatt;
3971 scratch.
d.
fetch.fixed =
false;
3972 scratch.
d.
fetch.known_desc = rdesc;
3973 scratch.
d.
fetch.kind = rops;
3981 for (
int natt = numCols; --natt >= 0;)
3983 int attno = keyColIdx[natt];
3986 Oid foid = eqfunctions[natt];
4009 scratch.
d.
var.attnum = attno - 1;
4010 scratch.
d.
var.vartype = latt->atttypid;
4017 scratch.
d.
var.attnum = attno - 1;
4018 scratch.
d.
var.vartype = ratt->atttypid;
4025 scratch.
d.
func.finfo = finfo;
4026 scratch.
d.
func.fcinfo_data = fcinfo;
4028 scratch.
d.
func.nargs = 2;
4040 state->steps_len - 1);
4044 foreach(lc, adjust_jumps)
4082 const Oid *eqfunctions,
4083 const Oid *collations,
4084 const List *param_exprs,
4095 state->parent = parent;
4102 scratch.
d.
fetch.last_var = maxatt;
4103 scratch.
d.
fetch.fixed =
false;
4104 scratch.
d.
fetch.known_desc = desc;
4105 scratch.
d.
fetch.kind = lops;
4110 scratch.
d.
fetch.last_var = maxatt;
4111 scratch.
d.
fetch.fixed =
false;
4112 scratch.
d.
fetch.known_desc = desc;
4113 scratch.
d.
fetch.kind = rops;
4117 for (
int attno = 0; attno < maxatt; attno++)
4120 Oid foid = eqfunctions[attno];
4143 scratch.
d.
var.attnum = attno;
4144 scratch.
d.
var.vartype = att->atttypid;
4151 scratch.
d.
var.attnum = attno;
4152 scratch.
d.
var.vartype = att->atttypid;
4159 scratch.
d.
func.finfo = finfo;
4160 scratch.
d.
func.fcinfo_data = fcinfo;
4162 scratch.
d.
func.nargs = 2;
4174 state->steps_len - 1);
4178 foreach(lc, adjust_jumps)
void aclcheck_error(AclResult aclerr, ObjectType objtype, const char *objectname)
AclResult object_aclcheck(Oid classid, Oid objectid, Oid roleid, AclMode mode)
#define InvalidAttrNumber
bool bms_is_member(int x, const Bitmapset *a)
Bitmapset * bms_add_member(Bitmapset *a, int x)
static Datum values[MAXATTR]
#define OidIsValid(objectId)
int errmsg_plural(const char *fmt_singular, const char *fmt_plural, unsigned long n,...)
int errdetail(const char *fmt,...)
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
void ExecReadyInterpretedExpr(ExprState *state)
static void ExecInitCoerceToDomain(ExprEvalStep *scratch, CoerceToDomain *ctest, ExprState *state, Datum *resv, bool *resnull)
ExprState * ExecPrepareExpr(Expr *node, EState *estate)
bool ExecCheck(ExprState *state, ExprContext *econtext)
static void ExecPushExprSetupSteps(ExprState *state, ExprSetupInfo *info)
static void ExecInitExprRec(Expr *node, ExprState *state, Datum *resv, bool *resnull)
static void ExecBuildAggTransCall(ExprState *state, AggState *aggstate, ExprEvalStep *scratch, FunctionCallInfo fcinfo, AggStatePerTrans pertrans, int transno, int setno, int setoff, bool ishash, bool nullcheck)
ExprState * ExecInitExprWithParams(Expr *node, ParamListInfo ext_params)
static void ExecInitWholeRowVar(ExprEvalStep *scratch, Var *variable, ExprState *state)
List * ExecInitExprList(List *nodes, PlanState *parent)
void ExprEvalPushStep(ExprState *es, const ExprEvalStep *s)
ProjectionInfo * ExecBuildUpdateProjection(List *targetList, bool evalTargetList, List *targetColnos, TupleDesc relDesc, ExprContext *econtext, TupleTableSlot *slot, PlanState *parent)
struct ExprSetupInfo ExprSetupInfo
ExprState * ExecBuildAggTrans(AggState *aggstate, AggStatePerPhase phase, bool doSort, bool doHash, bool nullcheck)
ExprState * ExecInitQual(List *qual, PlanState *parent)
static bool isAssignmentIndirectionExpr(Expr *expr)
static void ExecInitSubscriptingRef(ExprEvalStep *scratch, SubscriptingRef *sbsref, ExprState *state, Datum *resv, bool *resnull)
ExprState * ExecPrepareCheck(List *qual, EState *estate)
static bool expr_setup_walker(Node *node, ExprSetupInfo *info)
ExprState * ExecInitExpr(Expr *node, PlanState *parent)
ExprState * ExecInitCheck(List *qual, PlanState *parent)
static bool ExecComputeSlotInfo(ExprState *state, ExprEvalStep *op)
ExprState * ExecPrepareQual(List *qual, EState *estate)
ProjectionInfo * ExecBuildProjectionInfo(List *targetList, ExprContext *econtext, TupleTableSlot *slot, PlanState *parent, TupleDesc inputDesc)
ExprState * ExecBuildGroupingEqual(TupleDesc ldesc, TupleDesc rdesc, const TupleTableSlotOps *lops, const TupleTableSlotOps *rops, int numCols, const AttrNumber *keyColIdx, const Oid *eqfunctions, const Oid *collations, PlanState *parent)
List * ExecPrepareExprList(List *nodes, EState *estate)
static void ExecInitFunc(ExprEvalStep *scratch, Expr *node, List *args, Oid funcid, Oid inputcollid, ExprState *state)
static void ExecCreateExprSetupSteps(ExprState *state, Node *node)
static void ExecReadyExpr(ExprState *state)
ExprState * ExecBuildParamSetEqual(TupleDesc desc, const TupleTableSlotOps *lops, const TupleTableSlotOps *rops, const Oid *eqfunctions, const Oid *collations, const List *param_exprs, PlanState *parent)
@ EEOP_FUNCEXPR_STRICT_FUSAGE
@ EEOP_AGG_PLAIN_PERGROUP_NULLCHECK
@ EEOP_AGG_STRICT_DESERIALIZE
@ EEOP_BOOLTEST_IS_NOT_FALSE
@ EEOP_AGG_PLAIN_TRANS_BYREF
@ EEOP_AGG_PRESORTED_DISTINCT_MULTI
@ EEOP_AGG_PLAIN_TRANS_BYVAL
@ EEOP_NULLTEST_ROWISNOTNULL
@ EEOP_ASSIGN_TMP_MAKE_RO
@ EEOP_BOOL_OR_STEP_FIRST
@ EEOP_AGG_STRICT_INPUT_CHECK_NULLS
@ EEOP_AGG_STRICT_INPUT_CHECK_ARGS
@ EEOP_NULLTEST_ROWISNULL
@ EEOP_NULLTEST_ISNOTNULL
@ EEOP_MERGE_SUPPORT_FUNC
@ EEOP_AGG_PRESORTED_DISTINCT_SINGLE
@ EEOP_BOOL_AND_STEP_FIRST
@ EEOP_BOOL_AND_STEP_LAST
@ EEOP_AGG_ORDERED_TRANS_DATUM
@ EEOP_AGG_PLAIN_TRANS_STRICT_BYREF
@ EEOP_BOOLTEST_IS_NOT_TRUE
@ EEOP_AGG_PLAIN_TRANS_INIT_STRICT_BYVAL
@ EEOP_AGG_PLAIN_TRANS_STRICT_BYVAL
@ EEOP_AGG_PLAIN_TRANS_INIT_STRICT_BYREF
@ EEOP_HASHED_SCALARARRAYOP
@ EEOP_AGG_ORDERED_TRANS_TUPLE
JunkFilter * ExecInitJunkFilter(List *targetList, TupleTableSlot *slot)
TupleDesc BlessTupleDesc(TupleDesc tupdesc)
const TupleTableSlotOps TTSOpsVirtual
void ExecTypeSetColNames(TupleDesc typeInfo, List *namesList)
TupleTableSlot * ExecInitExtraTupleSlot(EState *estate, TupleDesc tupledesc, const TupleTableSlotOps *tts_ops)
TupleDesc ExecTypeFromExprList(List *exprList)
TupleDesc ExecGetResultType(PlanState *planstate)
const TupleTableSlotOps * ExecGetResultSlotOps(PlanState *planstate, bool *isfixed)
int executor_errposition(EState *estate, int location)
#define outerPlanState(node)
#define innerPlanState(node)
static Datum ExecEvalExprSwitchContext(ExprState *state, ExprContext *econtext, bool *isNull)
void fmgr_info(Oid functionId, FmgrInfo *finfo)
#define SizeForFunctionCallInfo(nargs)
#define InitFunctionCallInfoData(Fcinfo, Flinfo, Nargs, Collation, Context, Resultinfo)
#define fmgr_info_set_expr(expr, finfo)
if(TABLE==NULL||TABLE_index==NULL)
bool jit_compile_expr(struct ExprState *state)
void json_categorize_type(Oid typoid, bool is_jsonb, JsonTypeCategory *tcategory, Oid *outfuncoid)
Assert(fmt[strlen(fmt) - 1] !='\n')
List * lappend(List *list, void *datum)
List * lappend_int(List *list, int datum)
void get_op_opfamily_properties(Oid opno, Oid opfamily, bool ordering_op, int *strategy, Oid *lefttype, Oid *righttype)
Oid get_element_type(Oid typid)
void getTypeOutputInfo(Oid type, Oid *typOutput, bool *typIsVarlena)
void get_typlenbyvalalign(Oid typid, int16 *typlen, bool *typbyval, char *typalign)
Oid get_opfamily_proc(Oid opfamily, Oid lefttype, Oid righttype, int16 procnum)
void getTypeInputInfo(Oid type, Oid *typInput, Oid *typIOParam)
char * get_func_name(Oid funcid)
int16 get_typlen(Oid typid)
const struct SubscriptRoutines * getSubscriptingRoutines(Oid typid, Oid *typelemp)
Const * makeNullConst(Oid consttype, int32 consttypmod, Oid constcollid)
Expr * make_ands_explicit(List *andclauses)
void * palloc0(Size size)
MemoryContext CurrentMemoryContext
void * repalloc(void *pointer, Size size)
Oid exprType(const Node *expr)
int exprLocation(const Node *expr)
#define expression_tree_walker(n, w, c)
SubPlanState * ExecInitSubPlan(SubPlan *subplan, PlanState *parent)
#define IsA(nodeptr, _type_)
#define DO_AGGSPLIT_COMBINE(as)
#define InvokeFunctionExecuteHook(objectId)
static MemoryContext MemoryContextSwitchTo(MemoryContext context)
FormData_pg_attribute * Form_pg_attribute
#define lfirst_node(type, lc)
static int list_length(const List *l)
#define forboth(cell1, list1, cell2, list2)
#define foreach_ptr(type, var, lst)
#define forfive(cell1, list1, cell2, list2, cell3, list3, cell4, list4, cell5, list5)
#define foreach_int(var, lst)
Expr * expression_planner(Expr *expr)
void check_stack_depth(void)
static bool DatumGetBool(Datum X)
static Datum PointerGetDatum(const void *X)
static Datum ObjectIdGetDatum(Oid X)
static Datum Int32GetDatum(int32 X)
TupleTableSlot * sortslot
FunctionCallInfo deserialfn_fcinfo
FunctionCallInfo transfn_fcinfo
AggStatePerTrans pertrans
ExprContext * hashcontext
ExprContext ** aggcontexts
BoolTestType booltesttype
DomainConstraintType constrainttype
MemoryContext es_query_cxt
struct ExprEvalStep::@51::@63 param
struct ExprEvalStep::@51::@93 agg_presorted_distinctcheck
struct ExprEvalStep::@51::@66 make_readonly
struct ExprEvalStep::@51::@90 agg_deserialize
struct ExprEvalStep::@51::@92 agg_plain_pergroup_nullcheck
struct ExprEvalStep::@51::@52 fetch
struct ExprEvalStep::@51::@85 json_constructor
union ExprEvalStep::@51 d
struct ExprEvalStep::@51::@68 sqlvaluefunction
struct ExprEvalStep::@51::@77 fieldstore
struct ExprEvalStep::@51::@95 is_json
struct ExprEvalStep::@51::@57 constval
struct ExprEvalStep::@51::@71 arraycoerce
struct ExprEvalStep::@51::@56 assign_tmp
struct ExprEvalStep::@51::@81 convert_rowtype
struct ExprEvalStep::@51::@84 xmlexpr
struct ExprEvalStep::@51::@88 window_func
struct ExprEvalStep::@51::@73 rowcompare_step
struct ExprEvalStep::@51::@60 qualexpr
struct ExprEvalStep::@51::@54 wholerow
struct ExprEvalStep::@51::@78 sbsref_subscript
struct ExprEvalStep::@51::@65 casetest
struct ExprEvalStep::@51::@55 assign_var
struct ExprEvalStep::@51::@94 agg_trans
struct ExprEvalStep::@51::@89 subplan
struct ExprEvalStep::@51::@67 iocoerce
struct ExprEvalStep::@51::@61 jump
struct ExprEvalStep::@51::@91 agg_strict_input_check
struct ExprEvalStep::@51::@53 var
struct ExprEvalStep::@51::@72 row
struct ExprEvalStep::@51::@75 minmax
struct ExprEvalStep::@51::@82 scalararrayop
struct ExprEvalStep::@51::@79 sbsref
struct ExprEvalStep::@51::@80 domaincheck
struct ExprEvalStep::@51::@62 nulltest_row
struct ExprEvalStep::@51::@87 grouping_func
struct ExprEvalStep::@51::@83 hashedscalararrayop
struct ExprEvalStep::@51::@70 arrayexpr
struct ExprEvalStep::@51::@59 boolexpr
struct ExprEvalStep::@51::@74 rowcompare_final
struct ExprEvalStep::@51::@86 aggref
struct ExprEvalStep::@51::@69 nextvalueexpr
struct ExprEvalStep::@51::@58 func
struct ExprEvalStep::@51::@76 fieldselect
List * multiexpr_subplans
struct ExprEvalStep * steps
struct PlanState * parent
bool * innermost_casenull
Datum * innermost_caseval
NullableDatum args[FLEXIBLE_ARRAY_MEMBER]
JsonConstructorExpr * constructor
struct JsonConstructorExprState::@96 * arg_type_cache
JsonReturning * returning
NullTestType nulltesttype
ParamCompileHook paramCompile
const TupleTableSlotOps * outerops
const TupleTableSlotOps * innerops
const TupleTableSlotOps * scanops
ExprContext * pi_exprContext
ExecEvalSubroutine sbs_fetch_old
ExecEvalBoolSubroutine sbs_check_subscripts
ExecEvalSubroutine sbs_assign
ExecEvalSubroutine sbs_fetch
SubscriptExecSetup exec_setup
#define ReleaseTupleDesc(tupdesc)
#define TupleDescAttr(tupdesc, i)
void InitDomainConstraintRef(Oid type_id, DomainConstraintRef *ref, MemoryContext refctx, bool need_exprstate)
TupleDesc lookup_rowtype_tupdesc(Oid type_id, int32 typmod)
TypeCacheEntry * lookup_type_cache(Oid type_id, int flags)
TupleDesc lookup_rowtype_tupdesc_copy(Oid type_id, int32 typmod)
#define TYPECACHE_CMP_PROC
static void convert(const int32 val, char *const buf)