* 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) */
| 1104 | * for the Var's column (the Var could be a whole-row Var, too) |
| 1105 | */ |
| 1106 | void |
| 1107 | markVarForSelectPriv(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 |
no test coverage detected