68 Datum *resv,
bool *resnull);
70 Oid funcid,
Oid inputcollid,
81 Datum *resv,
bool *resnull);
85 Datum *resv,
bool *resnull);
89 int transno,
int setno,
int setoff,
bool ishash,
140 state->parent = parent;
141 state->ext_params = NULL;
177 state->parent = NULL;
178 state->ext_params = ext_params;
229 state->parent = parent;
230 state->ext_params = NULL;
264 state->steps_len - 1);
268 foreach(lc, adjust_jumps)
374 state->parent = parent;
375 state->ext_params = NULL;
377 state->resultslot = slot;
383 foreach(lc, targetList)
388 bool isSafeVar =
false;
398 if (tle->
expr != NULL &&
400 ((
Var *) tle->
expr)->varattno > 0)
406 if (inputDesc == NULL)
408 else if (attnum <= inputDesc->natts)
417 if (!attr->attisdropped &&
variable->vartype == attr->atttypid)
545 state->parent = parent;
546 state->ext_params = NULL;
548 state->resultslot = slot;
556 foreach(lc, targetList)
565 elog(
ERROR,
"subplan target list is out of order");
572 elog(
ERROR,
"targetColnos does not match subplan target list");
580 foreach(lc, targetColnos)
596 if (attr->attisdropped)
624 forboth(lc, targetList, lc2, targetColnos)
635 if (targetattnum <= 0 || targetattnum > relDesc->
natts)
637 (
errcode(ERRCODE_DATATYPE_MISMATCH),
638 errmsg(
"table row type and query-specified row type do not match"),
639 errdetail(
"Query has too many columns.")));
642 if (attr->attisdropped)
644 (
errcode(ERRCODE_DATATYPE_MISMATCH),
645 errmsg(
"table row type and query-specified row type do not match"),
646 errdetail(
"Query provides a value for a dropped column at ordinal position %d.",
650 (
errcode(ERRCODE_DATATYPE_MISMATCH),
651 errmsg(
"table row type and query-specified row type do not match"),
652 errdetail(
"Table has type %s at ordinal position %d, but query expects %s.",
692 if (attr->attisdropped)
891 Datum *resv,
bool *resnull)
899 Assert(resv != NULL && resnull != NULL);
967 scratch.
d.
constval.value = con->constvalue;
968 scratch.
d.
constval.isnull = con->constisnull;
995 if (
state->ext_params)
996 params =
state->ext_params;
997 else if (
state->parent &&
998 state->parent->state)
999 params =
state->parent->state->es_param_list_info;
1016 elog(
ERROR,
"unrecognized paramkind: %d",
1028 scratch.
d.
aggref.aggno = aggref->aggno;
1039 elog(
ERROR,
"Aggref found in non-Agg plan node");
1046 case T_GroupingFunc:
1053 elog(
ERROR,
"GroupingFunc found in non-Agg plan node");
1057 agg = (
Agg *) (
state->parent->plan);
1073 wfstate->
wfunc = wfunc;
1099 (
errcode(ERRCODE_WINDOWING_ERROR),
1100 errmsg(
"window function calls cannot be nested")));
1105 elog(
ERROR,
"WindowFunc found in non-WindowAgg plan node");
1114 case T_SubscriptingRef:
1138 op->
args, op->opfuncid, op->inputcollid,
1144 case T_DistinctExpr:
1149 op->
args, op->opfuncid, op->inputcollid,
1171 op->
args, op->opfuncid, op->inputcollid,
1188 case T_ScalarArrayOpExpr:
1207 cmpfuncid = opexpr->negfuncid;
1210 cmpfuncid = opexpr->opfuncid;
1242 opexpr->inputcollid, NULL, NULL);
1329 foreach(lc, boolexpr->
args)
1337 switch (boolexpr->
boolop)
1344 else if (off + 1 == nargs)
1354 else if (off + 1 == nargs)
1373 state->steps_len - 1);
1378 foreach(lc, adjust_jumps)
1410 elog(
ERROR,
"SubPlan found with no parent plan");
1435 scratch.
d.
fieldselect.resulttype = fselect->resulttype;
1455 ncolumns = tupDesc->
natts;
1460 nulls = (
bool *)
palloc(
sizeof(
bool) * ncolumns);
1483 Datum *save_innermost_caseval;
1484 bool *save_innermost_casenull;
1486 if (fieldnum <= 0 || fieldnum > ncolumns)
1487 elog(
ERROR,
"field number %d is out of range in FieldStore",
1514 save_innermost_caseval =
state->innermost_caseval;
1515 save_innermost_casenull =
state->innermost_casenull;
1517 state->innermost_casenull = &nulls[fieldnum - 1];
1521 &nulls[fieldnum - 1]);
1523 state->innermost_caseval = save_innermost_caseval;
1524 state->innermost_casenull = save_innermost_casenull;
1573 &iofunc, &typisvarlena);
1585 &iofunc, &typioparam);
1596 fcinfo_in = scratch.
d.
iocoerce.fcinfo_data_in;
1606 case T_ArrayCoerceExpr:
1618 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
1619 errmsg(
"target type is not an array")));
1673 case T_ConvertRowtypeExpr:
1704 Datum *caseval = NULL;
1705 bool *casenull = NULL;
1713 if (caseExpr->
arg != NULL)
1717 casenull =
palloc(
sizeof(
bool));
1747 foreach(lc, caseExpr->
args)
1750 Datum *save_innermost_caseval;
1751 bool *save_innermost_casenull;
1764 save_innermost_caseval =
state->innermost_caseval;
1765 save_innermost_casenull =
state->innermost_casenull;
1766 state->innermost_caseval = caseval;
1767 state->innermost_casenull = casenull;
1772 state->innermost_caseval = save_innermost_caseval;
1773 state->innermost_casenull = save_innermost_casenull;
1777 scratch.
d.
jump.jumpdone = -1;
1779 whenstep =
state->steps_len - 1;
1789 scratch.
d.
jump.jumpdone = -1;
1797 state->steps_len - 1);
1803 state->steps[whenstep].d.jump.jumpdone =
state->steps_len;
1814 foreach(lc, adjust_jumps)
1826 case T_CaseTestExpr:
1861 (
bool *)
palloc(
sizeof(
bool) * nelems);
1865 scratch.
d.
arrayexpr.multidims = arrayexpr->multidims;
1866 scratch.
d.
arrayexpr.elemtype = arrayexpr->element_typeid;
1900 if (rowexpr->row_typeid == RECORDOID)
1923 Assert(nelems <= tupdesc->natts);
1924 nelems =
Max(nelems, tupdesc->
natts);
1931 scratch.
d.
row.tupdesc = tupdesc;
1934 scratch.
d.
row.elemvalues =
1936 scratch.
d.
row.elemnulls =
1937 (
bool *)
palloc(
sizeof(
bool) * nelems);
1939 memset(scratch.
d.
row.elemnulls,
true,
sizeof(
bool) * nelems);
1943 foreach(l, rowexpr->
args)
1948 if (!att->attisdropped)
1958 (
errcode(ERRCODE_DATATYPE_MISMATCH),
1959 errmsg(
"ROW() column has type %s instead of type %s",
1975 &scratch.
d.
row.elemvalues[
i],
1976 &scratch.
d.
row.elemnulls[
i]);
1985 case T_RowCompareExpr:
2008 l_right_expr, rcexpr->
rargs,
2009 l_opno, rcexpr->opnos,
2010 l_opfamily, rcexpr->opfamilies,
2011 l_inputcollid, rcexpr->inputcollids)
2034 elog(
ERROR,
"missing support function %d(%u,%u) in opfamily %u",
2043 inputcollid, NULL, NULL);
2068 state->steps_len - 1);
2089 foreach(lc, adjust_jumps)
2106 case T_CoalesceExpr:
2119 foreach(lc, coalesce->
args)
2128 scratch.
d.
jump.jumpdone = -1;
2132 state->steps_len - 1);
2142 foreach(lc, adjust_jumps)
2169 (
errcode(ERRCODE_UNDEFINED_FUNCTION),
2170 errmsg(
"could not identify a comparison function for type %s",
2186 minmaxexpr->inputcollid, NULL, NULL);
2193 (
bool *)
palloc(
sizeof(
bool) * nelems);
2194 scratch.
d.
minmax.nelems = nelems;
2197 scratch.
d.
minmax.finfo = finfo;
2198 scratch.
d.
minmax.fcinfo_data = fcinfo;
2202 foreach(lc, minmaxexpr->
args)
2207 &scratch.
d.
minmax.values[off],
2208 &scratch.
d.
minmax.nulls[off]);
2217 case T_SQLValueFunction:
2245 (
bool *)
palloc(
sizeof(
bool) * nnamed);
2249 scratch.
d.
xmlexpr.named_argvalue = NULL;
2250 scratch.
d.
xmlexpr.named_argnull = NULL;
2258 (
bool *)
palloc(
sizeof(
bool) * nargs);
2273 &scratch.
d.
xmlexpr.named_argvalue[off],
2274 &scratch.
d.
xmlexpr.named_argnull[off]);
2294 case T_JsonValueExpr:
2303 case T_JsonConstructorExpr:
2334 jcstate->
nargs = nargs;
2347 jcstate->
arg_values[argno] = con->constvalue;
2348 jcstate->
arg_nulls[argno] = con->constisnull;
2368 for (
int i = 0;
i < nargs;
i++)
2375 &category, &outfuncid);
2387 Datum *innermost_caseval =
state->innermost_caseval;
2388 bool *innermost_isnull =
state->innermost_casenull;
2390 state->innermost_caseval = resv;
2391 state->innermost_casenull = resnull;
2395 state->innermost_caseval = innermost_caseval;
2396 state->innermost_casenull = innermost_isnull;
2401 case T_JsonIsPredicate:
2420 if (ntest->argisrow)
2427 if (ntest->argisrow)
2434 elog(
ERROR,
"unrecognized nulltesttype: %d",
2484 elog(
ERROR,
"unrecognized booltesttype: %d",
2492 case T_CoerceToDomain:
2501 case T_CoerceToDomainValue:
2520 case T_CurrentOfExpr:
2527 case T_NextValueExpr:
2540 elog(
ERROR,
"unrecognized node type: %d",
2603 (
errcode(ERRCODE_TOO_MANY_ARGUMENTS),
2604 errmsg_plural(
"cannot pass more than %d argument to a function",
2605 "cannot pass more than %d arguments to a function",
2612 flinfo = scratch->
d.
func.finfo;
2613 fcinfo = scratch->
d.
func.fcinfo_data;
2621 nargs, inputcollid, NULL, NULL);
2625 scratch->
d.
func.nargs = nargs;
2630 (
errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
2631 errmsg(
"set-valued function called in context that cannot accept a set"),
2650 fcinfo->
args[argno].
value = con->constvalue;
2651 fcinfo->
args[argno].
isnull = con->constisnull;
2663 if (pgstat_track_functions <= flinfo->fn_stats)
2716 scratch.
d.
fetch.fixed =
false;
2717 scratch.
d.
fetch.kind = NULL;
2718 scratch.
d.
fetch.known_desc = NULL;
2726 scratch.
d.
fetch.fixed =
false;
2727 scratch.
d.
fetch.kind = NULL;
2728 scratch.
d.
fetch.known_desc = NULL;
2736 scratch.
d.
fetch.fixed =
false;
2737 scratch.
d.
fetch.kind = NULL;
2738 scratch.
d.
fetch.known_desc = NULL;
2760 elog(
ERROR,
"SubPlan found with no parent plan");
2852 bool isfixed =
false;
2859 if (op->
d.
fetch.known_desc != NULL)
2861 desc = op->
d.
fetch.known_desc;
2862 tts_ops = op->
d.
fetch.kind;
2863 isfixed = op->
d.
fetch.kind != NULL;
2920 if (isfixed && desc != NULL && tts_ops != NULL)
2922 op->
d.
fetch.fixed =
true;
2923 op->
d.
fetch.kind = tts_ops;
2924 op->
d.
fetch.known_desc = desc;
2928 op->
d.
fetch.fixed =
false;
2930 op->
d.
fetch.known_desc = NULL;
2975 case T_SubqueryScanState:
2978 case T_CteScanState:
2987 bool junk_filter_needed =
false;
2997 junk_filter_needed =
true;
3003 if (junk_filter_needed)
3036 (
errcode(ERRCODE_DATATYPE_MISMATCH),
3037 errmsg(
"cannot subscript type %s because it does not support subscripting",
3045 (nupper + nlower) * (
sizeof(
Datum) +
3055 ptr += nupper *
sizeof(
Datum);
3057 ptr += nlower *
sizeof(
Datum);
3059 ptr += nupper *
sizeof(
bool);
3061 ptr += nlower *
sizeof(
bool);
3063 ptr += nupper *
sizeof(
bool);
3073 memset(&methods, 0,
sizeof(methods));
3074 sbsroutines->
exec_setup(sbsref, sbsrefstate, &methods);
3092 scratch->
d.
jump.jumpdone = -1;
3095 state->steps_len - 1);
3153 state->steps_len - 1);
3158 Datum *save_innermost_caseval;
3159 bool *save_innermost_casenull;
3164 (
errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
3165 errmsg(
"type %s does not support subscripted assignment",
3186 (
errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
3187 errmsg(
"type %s does not support subscripted assignment",
3191 scratch->
d.
sbsref.state = sbsrefstate;
3196 save_innermost_caseval =
state->innermost_caseval;
3197 save_innermost_casenull =
state->innermost_casenull;
3205 state->innermost_caseval = save_innermost_caseval;
3206 state->innermost_casenull = save_innermost_casenull;
3211 scratch->
d.
sbsref.state = sbsrefstate;
3219 scratch->
d.
sbsref.state = sbsrefstate;
3224 foreach(lc, adjust_jumps)
3301 Datum *domainval = NULL;
3302 bool *domainnull = NULL;
3349 Datum *save_innermost_domainval;
3350 bool *save_innermost_domainnull;
3367 (
bool *)
palloc(
sizeof(
bool));
3374 if (domainval == NULL)
3386 domainnull = (
bool *)
palloc(
sizeof(
bool));
3391 scratch2.
resnull = domainnull;
3400 domainnull = resnull;
3410 save_innermost_domainval =
state->innermost_domainval;
3411 save_innermost_domainnull =
state->innermost_domainnull;
3412 state->innermost_domainval = domainval;
3413 state->innermost_domainnull = domainnull;
3420 state->innermost_domainval = save_innermost_domainval;
3421 state->innermost_domainnull = save_innermost_domainnull;
3429 elog(
ERROR,
"unrecognized constraint type: %d",
3452 bool doSort,
bool doHash,
bool nullcheck)
3461 state->parent = parent;
3470 for (
int transno = 0; transno < aggstate->
numtrans; transno++)
3490 for (
int transno = 0; transno < aggstate->
numtrans; transno++)
3496 bool *strictnulls = NULL;
3513 scratch.
d.
jump.jumpdone = -1;
3516 state->steps_len - 1);
3535 strictargs = trans_fcinfo->
args + 1;
3583 state->steps_len - 1);
3602 strictargs = trans_fcinfo->
args + 1;
3640 strictnulls = &
state->resnull;
3655 strictnulls = nulls;
3662 &
values[argno], &nulls[argno]);
3685 state->steps_len - 1);
3700 state->steps_len - 1);
3710 int processGroupingSets =
Max(phase->
numsets, 1);
3713 for (
int setno = 0; setno < processGroupingSets; setno++)
3716 pertrans, transno, setno, setoff,
false,
3733 for (
int setno = 0; setno < numHashes; setno++)
3736 pertrans, transno, setno, setoff,
true,
3743 foreach(
bail, adjust_bailout)
3793 int transno,
int setno,
int setoff,
bool ishash,
3797 int adjust_jumpnull = -1;
3812 adjust_jumpnull =
state->steps_len - 1;
3881 scratch->
d.
agg_trans.aggcontext = aggcontext;
3885 if (adjust_jumpnull != -1)
3911 const Oid *eqfunctions,
3912 const Oid *collations,
3930 state->parent = parent;
3936 for (
int natt = 0; natt < numCols; natt++)
3938 int attno = keyColIdx[natt];
3947 scratch.
d.
fetch.last_var = maxatt;
3948 scratch.
d.
fetch.fixed =
false;
3949 scratch.
d.
fetch.known_desc = ldesc;
3950 scratch.
d.
fetch.kind = lops;
3955 scratch.
d.
fetch.last_var = maxatt;
3956 scratch.
d.
fetch.fixed =
false;
3957 scratch.
d.
fetch.known_desc = rdesc;
3958 scratch.
d.
fetch.kind = rops;
3966 for (
int natt = numCols; --natt >= 0;)
3968 int attno = keyColIdx[natt];
3971 Oid foid = eqfunctions[natt];
3994 scratch.
d.
var.attnum = attno - 1;
3995 scratch.
d.
var.vartype = latt->atttypid;
4002 scratch.
d.
var.attnum = attno - 1;
4003 scratch.
d.
var.vartype = ratt->atttypid;
4010 scratch.
d.
func.finfo = finfo;
4011 scratch.
d.
func.fcinfo_data = fcinfo;
4013 scratch.
d.
func.nargs = 2;
4025 state->steps_len - 1);
4029 foreach(lc, adjust_jumps)
4067 const Oid *eqfunctions,
4068 const Oid *collations,
4069 const List *param_exprs,
4080 state->parent = parent;
4087 scratch.
d.
fetch.last_var = maxatt;
4088 scratch.
d.
fetch.fixed =
false;
4089 scratch.
d.
fetch.known_desc = desc;
4090 scratch.
d.
fetch.kind = lops;
4095 scratch.
d.
fetch.last_var = maxatt;
4096 scratch.
d.
fetch.fixed =
false;
4097 scratch.
d.
fetch.known_desc = desc;
4098 scratch.
d.
fetch.kind = rops;
4102 for (
int attno = 0; attno < maxatt; attno++)
4105 Oid foid = eqfunctions[attno];
4128 scratch.
d.
var.attnum = attno;
4129 scratch.
d.
var.vartype = att->atttypid;
4136 scratch.
d.
var.attnum = attno;
4137 scratch.
d.
var.vartype = att->atttypid;
4144 scratch.
d.
func.finfo = finfo;
4145 scratch.
d.
func.fcinfo_data = fcinfo;
4147 scratch.
d.
func.nargs = 2;
4159 state->steps_len - 1);
4163 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)
elog(ERROR, "%s: %s", p2, msg)
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_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 forfive(cell1, list1, cell2, list2, cell3, list3, cell4, list4, cell5, list5)
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)