MCPcopy Create free account
hub / github.com/apache/cloudberry / ExecEvalSysVar

Function ExecEvalSysVar

src/backend/executor/execExprInterp.c:4399–4413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4397}
4398
4399void
4400ExecEvalSysVar(ExprState *state, ExprEvalStep *op, ExprContext *econtext,
4401 TupleTableSlot *slot)
4402{
4403 Datum d;
4404
4405 /* slot_getsysattr has sufficient defenses against bad attnums */
4406 d = slot_getsysattr(slot,
4407 op->d.var.attnum,
4408 op->resnull);
4409 *op->resvalue = d;
4410 /* this ought to be unreachable, but it's cheap enough to check */
4411 if (unlikely(*op->resnull))
4412 elog(ERROR, "failed to fetch attribute from slot");
4413}
4414
4415/*
4416 * Transition value has not been initialized. This is the first non-NULL input

Callers 1

ExecInterpExprFunction · 0.85

Calls 1

slot_getsysattrFunction · 0.85

Tested by

no test coverage detected