68 Datum *resv,
bool *resnull);
70 Oid funcid,
Oid inputcollid,
74 Datum *resv,
bool *resnull);
84 Datum *resv,
bool *resnull);
88 Datum *resv,
bool *resnull);
92 int transno,
int setno,
int setoff,
bool ishash,
95 Datum *resv,
bool *resnull,
100 Datum *resv,
bool *resnull);
150 state->parent = parent;
151 state->ext_params = NULL;
187 state->parent = NULL;
188 state->ext_params = ext_params;
238 state->parent = parent;
239 state->ext_params = NULL;
271 state->steps_len - 1);
381 state->parent = parent;
382 state->ext_params = NULL;
384 state->resultslot = slot;
390 foreach(lc, targetList)
395 bool isSafeVar =
false;
405 if (tle->
expr != NULL &&
407 ((
Var *) tle->
expr)->varattno > 0)
413 if (inputDesc == NULL)
415 else if (attnum <= inputDesc->natts)
424 if (!attr->attisdropped &&
variable->vartype == attr->atttypid)
552 state->parent = parent;
553 state->ext_params = NULL;
555 state->resultslot = slot;
563 foreach(lc, targetList)
572 elog(
ERROR,
"subplan target list is out of order");
579 elog(
ERROR,
"targetColnos does not match subplan target list");
587 foreach(lc, targetColnos)
603 if (attr->attisdropped)
631 forboth(lc, targetList, lc2, targetColnos)
642 if (targetattnum <= 0 || targetattnum > relDesc->
natts)
644 (
errcode(ERRCODE_DATATYPE_MISMATCH),
645 errmsg(
"table row type and query-specified row type do not match"),
646 errdetail(
"Query has too many columns.")));
649 if (attr->attisdropped)
651 (
errcode(ERRCODE_DATATYPE_MISMATCH),
652 errmsg(
"table row type and query-specified row type do not match"),
653 errdetail(
"Query provides a value for a dropped column at ordinal position %d.",
657 (
errcode(ERRCODE_DATATYPE_MISMATCH),
658 errmsg(
"table row type and query-specified row type do not match"),
659 errdetail(
"Table has type %s at ordinal position %d, but query expects %s.",
699 if (attr->attisdropped)
898 Datum *resv,
bool *resnull)
906 Assert(resv != NULL && resnull != NULL);
974 scratch.
d.
constval.value = con->constvalue;
975 scratch.
d.
constval.isnull = con->constisnull;
1002 if (
state->ext_params)
1003 params =
state->ext_params;
1004 else if (
state->parent &&
1005 state->parent->state)
1006 params =
state->parent->state->es_param_list_info;
1023 elog(
ERROR,
"unrecognized paramkind: %d",
1035 scratch.
d.
aggref.aggno = aggref->aggno;
1046 elog(
ERROR,
"Aggref found in non-Agg plan node");
1053 case T_GroupingFunc:
1060 elog(
ERROR,
"GroupingFunc found in non-Agg plan node");
1064 agg = (
Agg *) (
state->parent->plan);
1080 wfstate->
wfunc = wfunc;
1106 (
errcode(ERRCODE_WINDOWING_ERROR),
1107 errmsg(
"window function calls cannot be nested")));
1112 elog(
ERROR,
"WindowFunc found in non-WindowAgg plan node");
1121 case T_MergeSupportFunc:
1124 if (!
state->parent ||
1127 elog(
ERROR,
"MergeSupportFunc found in non-merge plan node");
1134 case T_SubscriptingRef:
1158 op->
args, op->opfuncid, op->inputcollid,
1164 case T_DistinctExpr:
1169 op->
args, op->opfuncid, op->inputcollid,
1191 op->
args, op->opfuncid, op->inputcollid,
1208 case T_ScalarArrayOpExpr:
1227 cmpfuncid = opexpr->negfuncid;
1230 cmpfuncid = opexpr->opfuncid;
1262 opexpr->inputcollid, NULL, NULL);
1349 foreach(lc, boolexpr->
args)
1357 switch (boolexpr->
boolop)
1364 else if (off + 1 == nargs)
1374 else if (off + 1 == nargs)
1393 state->steps_len - 1);
1398 foreach(lc, adjust_jumps)
1442 scratch.
d.
fieldselect.resulttype = fselect->resulttype;
1462 ncolumns = tupDesc->
natts;
1467 nulls = (
bool *)
palloc(
sizeof(
bool) * ncolumns);
1490 Datum *save_innermost_caseval;
1491 bool *save_innermost_casenull;
1493 if (fieldnum <= 0 || fieldnum > ncolumns)
1494 elog(
ERROR,
"field number %d is out of range in FieldStore",
1521 save_innermost_caseval =
state->innermost_caseval;
1522 save_innermost_casenull =
state->innermost_casenull;
1524 state->innermost_casenull = &nulls[fieldnum - 1];
1528 &nulls[fieldnum - 1]);
1530 state->innermost_caseval = save_innermost_caseval;
1531 state->innermost_casenull = save_innermost_casenull;
1573 if (
state->escontext == NULL)
1583 &iofunc, &typisvarlena);
1595 &iofunc, &typioparam);
1606 fcinfo_in = scratch.
d.
iocoerce.fcinfo_data_in;
1618 case T_ArrayCoerceExpr:
1630 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
1631 errmsg(
"target type is not an array")));
1685 case T_ConvertRowtypeExpr:
1716 Datum *caseval = NULL;
1717 bool *casenull = NULL;
1725 if (caseExpr->
arg != NULL)
1729 casenull =
palloc(
sizeof(
bool));
1759 foreach(lc, caseExpr->
args)
1762 Datum *save_innermost_caseval;
1763 bool *save_innermost_casenull;
1776 save_innermost_caseval =
state->innermost_caseval;
1777 save_innermost_casenull =
state->innermost_casenull;
1778 state->innermost_caseval = caseval;
1779 state->innermost_casenull = casenull;
1784 state->innermost_caseval = save_innermost_caseval;
1785 state->innermost_casenull = save_innermost_casenull;
1789 scratch.
d.
jump.jumpdone = -1;
1791 whenstep =
state->steps_len - 1;
1801 scratch.
d.
jump.jumpdone = -1;
1809 state->steps_len - 1);
1815 state->steps[whenstep].d.jump.jumpdone =
state->steps_len;
1826 foreach(lc, adjust_jumps)
1838 case T_CaseTestExpr:
1873 (
bool *)
palloc(
sizeof(
bool) * nelems);
1877 scratch.
d.
arrayexpr.multidims = arrayexpr->multidims;
1878 scratch.
d.
arrayexpr.elemtype = arrayexpr->element_typeid;
1912 if (rowexpr->row_typeid == RECORDOID)
1935 Assert(nelems <= tupdesc->natts);
1936 nelems =
Max(nelems, tupdesc->
natts);
1943 scratch.
d.
row.tupdesc = tupdesc;
1946 scratch.
d.
row.elemvalues =
1948 scratch.
d.
row.elemnulls =
1949 (
bool *)
palloc(
sizeof(
bool) * nelems);
1951 memset(scratch.
d.
row.elemnulls,
true,
sizeof(
bool) * nelems);
1955 foreach(l, rowexpr->
args)
1960 if (!att->attisdropped)
1970 (
errcode(ERRCODE_DATATYPE_MISMATCH),
1971 errmsg(
"ROW() column has type %s instead of type %s",
1987 &scratch.
d.
row.elemvalues[
i],
1988 &scratch.
d.
row.elemnulls[
i]);
1997 case T_RowCompareExpr:
2020 l_right_expr, rcexpr->
rargs,
2021 l_opno, rcexpr->opnos,
2022 l_opfamily, rcexpr->opfamilies,
2023 l_inputcollid, rcexpr->inputcollids)
2046 elog(
ERROR,
"missing support function %d(%u,%u) in opfamily %u",
2055 inputcollid, NULL, NULL);
2080 state->steps_len - 1);
2101 foreach(lc, adjust_jumps)
2118 case T_CoalesceExpr:
2131 foreach(lc, coalesce->
args)
2140 scratch.
d.
jump.jumpdone = -1;
2144 state->steps_len - 1);
2154 foreach(lc, adjust_jumps)
2181 (
errcode(ERRCODE_UNDEFINED_FUNCTION),
2182 errmsg(
"could not identify a comparison function for type %s",
2198 minmaxexpr->inputcollid, NULL, NULL);
2205 (
bool *)
palloc(
sizeof(
bool) * nelems);
2206 scratch.
d.
minmax.nelems = nelems;
2209 scratch.
d.
minmax.finfo = finfo;
2210 scratch.
d.
minmax.fcinfo_data = fcinfo;
2214 foreach(lc, minmaxexpr->
args)
2219 &scratch.
d.
minmax.values[off],
2220 &scratch.
d.
minmax.nulls[off]);
2229 case T_SQLValueFunction:
2257 (
bool *)
palloc(
sizeof(
bool) * nnamed);
2261 scratch.
d.
xmlexpr.named_argvalue = NULL;
2262 scratch.
d.
xmlexpr.named_argnull = NULL;
2270 (
bool *)
palloc(
sizeof(
bool) * nargs);
2285 &scratch.
d.
xmlexpr.named_argvalue[off],
2286 &scratch.
d.
xmlexpr.named_argnull[off]);
2306 case T_JsonValueExpr:
2315 case T_JsonConstructorExpr:
2346 jcstate->
nargs = nargs;
2359 jcstate->
arg_values[argno] = con->constvalue;
2360 jcstate->
arg_nulls[argno] = con->constisnull;
2380 for (
int i = 0;
i < nargs;
i++)
2387 &category, &outfuncid);
2399 Datum *innermost_caseval =
state->innermost_caseval;
2400 bool *innermost_isnull =
state->innermost_casenull;
2402 state->innermost_caseval = resv;
2403 state->innermost_casenull = resnull;
2407 state->innermost_caseval = innermost_caseval;
2408 state->innermost_casenull = innermost_isnull;
2413 case T_JsonIsPredicate:
2449 if (ntest->argisrow)
2456 if (ntest->argisrow)
2463 elog(
ERROR,
"unrecognized nulltesttype: %d",
2513 elog(
ERROR,
"unrecognized booltesttype: %d",
2521 case T_CoerceToDomain:
2530 case T_CoerceToDomainValue:
2549 case T_CurrentOfExpr:
2556 case T_NextValueExpr:
2569 elog(
ERROR,
"unrecognized node type: %d",
2632 (
errcode(ERRCODE_TOO_MANY_ARGUMENTS),
2633 errmsg_plural(
"cannot pass more than %d argument to a function",
2634 "cannot pass more than %d arguments to a function",
2641 flinfo = scratch->
d.
func.finfo;
2642 fcinfo = scratch->
d.
func.fcinfo_data;
2650 nargs, inputcollid, NULL, NULL);
2654 scratch->
d.
func.nargs = nargs;
2659 (
errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
2660 errmsg(
"set-valued function called in context that cannot accept a set"),
2679 fcinfo->
args[argno].
value = con->constvalue;
2680 fcinfo->
args[argno].
isnull = con->constisnull;
2692 if (pgstat_track_functions <= flinfo->fn_stats)
2719 Datum *resv,
bool *resnull)
2727 elog(
ERROR,
"SubPlan found with no parent plan");
2752 scratch.
d.
param.paramid = paramid;
2809 scratch.
d.
fetch.fixed =
false;
2810 scratch.
d.
fetch.kind = NULL;
2811 scratch.
d.
fetch.known_desc = NULL;
2819 scratch.
d.
fetch.fixed =
false;
2820 scratch.
d.
fetch.kind = NULL;
2821 scratch.
d.
fetch.known_desc = NULL;
2829 scratch.
d.
fetch.fixed =
false;
2830 scratch.
d.
fetch.kind = NULL;
2831 scratch.
d.
fetch.known_desc = NULL;
2928 bool isfixed =
false;
2935 if (op->
d.
fetch.known_desc != NULL)
2937 desc = op->
d.
fetch.known_desc;
2938 tts_ops = op->
d.
fetch.kind;
2939 isfixed = op->
d.
fetch.kind != NULL;
2996 if (isfixed && desc != NULL && tts_ops != NULL)
2998 op->
d.
fetch.fixed =
true;
2999 op->
d.
fetch.kind = tts_ops;
3000 op->
d.
fetch.known_desc = desc;
3004 op->
d.
fetch.fixed =
false;
3006 op->
d.
fetch.known_desc = NULL;
3051 case T_SubqueryScanState:
3054 case T_CteScanState:
3063 bool junk_filter_needed =
false;
3073 junk_filter_needed =
true;
3079 if (junk_filter_needed)
3112 (
errcode(ERRCODE_DATATYPE_MISMATCH),
3113 errmsg(
"cannot subscript type %s because it does not support subscripting",
3121 (nupper + nlower) * (
sizeof(
Datum) +
3131 ptr += nupper *
sizeof(
Datum);
3133 ptr += nlower *
sizeof(
Datum);
3135 ptr += nupper *
sizeof(
bool);
3137 ptr += nlower *
sizeof(
bool);
3139 ptr += nupper *
sizeof(
bool);
3149 memset(&methods, 0,
sizeof(methods));
3150 sbsroutines->
exec_setup(sbsref, sbsrefstate, &methods);
3168 scratch->
d.
jump.jumpdone = -1;
3171 state->steps_len - 1);
3229 state->steps_len - 1);
3234 Datum *save_innermost_caseval;
3235 bool *save_innermost_casenull;
3240 (
errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
3241 errmsg(
"type %s does not support subscripted assignment",
3262 (
errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
3263 errmsg(
"type %s does not support subscripted assignment",
3267 scratch->
d.
sbsref.state = sbsrefstate;
3272 save_innermost_caseval =
state->innermost_caseval;
3273 save_innermost_casenull =
state->innermost_casenull;
3281 state->innermost_caseval = save_innermost_caseval;
3282 state->innermost_casenull = save_innermost_casenull;
3287 scratch->
d.
sbsref.state = sbsrefstate;
3295 scratch->
d.
sbsref.state = sbsrefstate;
3300 foreach(lc, adjust_jumps)
3377 Datum *domainval = NULL;
3378 bool *domainnull = NULL;
3426 Datum *save_innermost_domainval;
3427 bool *save_innermost_domainnull;
3444 (
bool *)
palloc(
sizeof(
bool));
3451 if (domainval == NULL)
3463 domainnull = (
bool *)
palloc(
sizeof(
bool));
3468 scratch2.
resnull = domainnull;
3477 domainnull = resnull;
3487 save_innermost_domainval =
state->innermost_domainval;
3488 save_innermost_domainnull =
state->innermost_domainnull;
3489 state->innermost_domainval = domainval;
3490 state->innermost_domainnull = domainnull;
3497 state->innermost_domainval = save_innermost_domainval;
3498 state->innermost_domainnull = save_innermost_domainnull;
3506 elog(
ERROR,
"unrecognized constraint type: %d",
3529 bool doSort,
bool doHash,
bool nullcheck)
3538 state->parent = parent;
3547 for (
int transno = 0; transno < aggstate->
numtrans; transno++)
3567 for (
int transno = 0; transno < aggstate->
numtrans; transno++)
3573 bool *strictnulls = NULL;
3590 scratch.
d.
jump.jumpdone = -1;
3593 state->steps_len - 1);
3612 strictargs = trans_fcinfo->
args + 1;
3660 state->steps_len - 1);
3679 strictargs = trans_fcinfo->
args + 1;
3717 strictnulls = &
state->resnull;
3732 strictnulls = nulls;
3739 &
values[argno], &nulls[argno]);
3762 state->steps_len - 1);
3777 state->steps_len - 1);
3787 int processGroupingSets =
Max(phase->
numsets, 1);
3790 for (
int setno = 0; setno < processGroupingSets; setno++)
3793 pertrans, transno, setno, setoff,
false,
3810 for (
int setno = 0; setno < numHashes; setno++)
3813 pertrans, transno, setno, setoff,
true,
3820 foreach(
bail, adjust_bailout)
3870 int transno,
int setno,
int setoff,
bool ishash,
3874 int adjust_jumpnull = -1;
3889 adjust_jumpnull =
state->steps_len - 1;
3958 scratch->
d.
agg_trans.aggcontext = aggcontext;
3962 if (adjust_jumpnull != -1)
3993 const Oid *hashfunc_oids,
const List *collations,
3994 const List *hash_exprs,
const bool *opstrict,
4002 intptr_t strict_opcode;
4007 state->parent = parent;
4012 if (init_value == 0)
4040 forboth(lc, hash_exprs, lc2, collations)
4049 funcid = hashfunc_oids[
i];
4076 scratch.
opcode = opstrict[
i] && !keep_nulls ? strict_opcode : opcode;
4091 foreach(lc, adjust_jumps)
4129 const Oid *eqfunctions,
4130 const Oid *collations,
4148 state->parent = parent;
4154 for (
int natt = 0; natt < numCols; natt++)
4156 int attno = keyColIdx[natt];
4165 scratch.
d.
fetch.last_var = maxatt;
4166 scratch.
d.
fetch.fixed =
false;
4167 scratch.
d.
fetch.known_desc = ldesc;
4168 scratch.
d.
fetch.kind = lops;
4173 scratch.
d.
fetch.last_var = maxatt;
4174 scratch.
d.
fetch.fixed =
false;
4175 scratch.
d.
fetch.known_desc = rdesc;
4176 scratch.
d.
fetch.kind = rops;
4184 for (
int natt = numCols; --natt >= 0;)
4186 int attno = keyColIdx[natt];
4189 Oid foid = eqfunctions[natt];
4212 scratch.
d.
var.attnum = attno - 1;
4213 scratch.
d.
var.vartype = latt->atttypid;
4220 scratch.
d.
var.attnum = attno - 1;
4221 scratch.
d.
var.vartype = ratt->atttypid;
4228 scratch.
d.
func.finfo = finfo;
4229 scratch.
d.
func.fcinfo_data = fcinfo;
4231 scratch.
d.
func.nargs = 2;
4243 state->steps_len - 1);
4247 foreach(lc, adjust_jumps)
4285 const Oid *eqfunctions,
4286 const Oid *collations,
4287 const List *param_exprs,
4298 state->parent = parent;
4305 scratch.
d.
fetch.last_var = maxatt;
4306 scratch.
d.
fetch.fixed =
false;
4307 scratch.
d.
fetch.known_desc = desc;
4308 scratch.
d.
fetch.kind = lops;
4313 scratch.
d.
fetch.last_var = maxatt;
4314 scratch.
d.
fetch.fixed =
false;
4315 scratch.
d.
fetch.known_desc = desc;
4316 scratch.
d.
fetch.kind = rops;
4320 for (
int attno = 0; attno < maxatt; attno++)
4323 Oid foid = eqfunctions[attno];
4346 scratch.
d.
var.attnum = attno;
4347 scratch.
d.
var.vartype = att->atttypid;
4354 scratch.
d.
var.attnum = attno;
4355 scratch.
d.
var.vartype = att->atttypid;
4362 scratch.
d.
func.finfo = finfo;
4363 scratch.
d.
func.fcinfo_data = fcinfo;
4365 scratch.
d.
func.nargs = 2;
4377 state->steps_len - 1);
4381 foreach(lc, adjust_jumps)
4405 Datum *resv,
bool *resnull,
4411 List *jumps_return_null =
NIL;
4415 bool returning_domain =
4420 jsestate->
jsexpr = jsexpr;
4434 scratch->
d.
jump.jumpdone = -1;
4449 scratch->
d.
jump.jumpdone = -1;
4475 scratch->
d.
jsonexpr.jsestate = jsestate;
4483 foreach(lc, jumps_return_null)
4560 scratch->
d.
jsonexpr.jsestate = jsestate;
4592 scratch->
d.
jump.jumpdone = -1;
4599 saved_escontext =
state->escontext;
4600 state->escontext = escontext;
4602 state, resv, resnull);
4603 state->escontext = saved_escontext;
4622 scratch->
d.
jsonexpr.jsestate = jsestate;
4629 scratch->
d.
jump.jumpdone = -1;
4655 scratch->
d.
jump.jumpdone = -1;
4662 saved_escontext =
state->escontext;
4663 state->escontext = escontext;
4665 state, resv, resnull);
4666 state->escontext = saved_escontext;
4686 scratch->
d.
jsonexpr.jsestate = jsestate;
4691 foreach(lc, jumps_to_end)
4709 Datum *resv,
bool *resnull)
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 Assert(condition)
#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)
static void ExecInitSubPlanExpr(SubPlan *subplan, 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)
static void ExecInitJsonCoercion(ExprState *state, JsonReturning *returning, ErrorSaveContext *escontext, bool omit_quotes, bool exists_coerce, Datum *resv, bool *resnull)
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 * ExecBuildHash32Expr(TupleDesc desc, const TupleTableSlotOps *ops, const Oid *hashfunc_oids, const List *collations, const List *hash_exprs, const bool *opstrict, PlanState *parent, uint32 init_value, bool keep_nulls)
static void ExecInitJsonExpr(JsonExpr *jsexpr, ExprState *state, Datum *resv, bool *resnull, ExprEvalStep *scratch)
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_HASHDATUM_NEXT32_STRICT
@ EEOP_JSONEXPR_COERCION_FINISH
@ EEOP_HASHDATUM_FIRST_STRICT
@ 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_HASHDATUM_SET_INITVAL
@ 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)
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)
char get_typtype(Oid typid)
const struct SubscriptRoutines * getSubscriptingRoutines(Oid typid, Oid *typelemp)
Oid getBaseType(Oid typid)
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)
int32 exprTypmod(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 castNode(_type_, nodeptr)
#define InvokeFunctionExecuteHook(objectId)
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_current_index(var_or_cell)
#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)
static Datum UInt32GetDatum(uint32 X)
MemoryContextSwitchTo(old_ctx)
TupleTableSlot * sortslot
FunctionCallInfo deserialfn_fcinfo
FunctionCallInfo transfn_fcinfo
AggStatePerTrans pertrans
ExprContext * hashcontext
ExprContext ** aggcontexts