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

Function markVarForSelectPriv

src/backend/parser/parse_relation.c:1106–1116  ·  view source on GitHub ↗

* markVarForSelectPriv * Mark the RTE referenced by the Var as requiring SELECT privilege * for the Var's column (the Var could be a whole-row Var, too) */

Source from the content-addressed store, hash-verified

1104 * for the Var's column (the Var could be a whole-row Var, too)
1105 */
1106void
1107markVarForSelectPriv(ParseState *pstate, Var *var)
1108{
1109 Index lv;
1110
1111 Assert(IsA(var, Var));
1112 /* Find the appropriate pstate if it's an uplevel Var */
1113 for (lv = 0; lv < var->varlevelsup; lv++)
1114 pstate = pstate->parentParseState;
1115 markRTEForSelectPriv(pstate, var->varno, var->varattno);
1116}
1117
1118/*
1119 * buildRelationAliases

Callers 5

scanNSItemForColumnFunction · 0.85
expandNSItemAttrsFunction · 0.85
transformWholeRowRefFunction · 0.85
transformJoinUsingClauseFunction · 0.85
ExpandSingleTableFunction · 0.85

Calls 1

markRTEForSelectPrivFunction · 0.85

Tested by

no test coverage detected