aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_relation.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-02-11 11:23:25 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2021-02-11 11:23:25 -0500
commitd4c746516b8b4eb0bf993e3729ccc04d1febdb1e (patch)
tree55699d74c7a9cc45dfe722a0359f42fe369c3b8e /src/backend/parser/parse_relation.c
parent42d74e0c443760af91875af99d2655c9eb4c40df (diff)
downloadpostgresql-d4c746516b8b4eb0bf993e3729ccc04d1febdb1e.tar.gz
postgresql-d4c746516b8b4eb0bf993e3729ccc04d1febdb1e.zip
Remove no-longer-used RTE argument of markVarForSelectPriv().
In the wake of c028faf2a, this is no longer needed. I left it out of that patch since the API change would be undesirable in a released branch; but there's no reason not to do it in HEAD.
Diffstat (limited to 'src/backend/parser/parse_relation.c')
-rw-r--r--src/backend/parser/parse_relation.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/backend/parser/parse_relation.c b/src/backend/parser/parse_relation.c
index d0ec95c7798..ca02982e0b3 100644
--- a/src/backend/parser/parse_relation.c
+++ b/src/backend/parser/parse_relation.c
@@ -740,7 +740,7 @@ scanNSItemForColumn(ParseState *pstate, ParseNamespaceItem *nsitem,
var->location = location;
/* Require read access to the column */
- markVarForSelectPriv(pstate, var, rte);
+ markVarForSelectPriv(pstate, var);
return (Node *) var;
}
@@ -1074,11 +1074,9 @@ markRTEForSelectPriv(ParseState *pstate, int rtindex, AttrNumber col)
* 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)
- *
- * The rte argument is unused and will be removed later.
*/
void
-markVarForSelectPriv(ParseState *pstate, Var *var, RangeTblEntry *rte)
+markVarForSelectPriv(ParseState *pstate, Var *var)
{
Index lv;
@@ -3123,7 +3121,7 @@ expandNSItemAttrs(ParseState *pstate, ParseNamespaceItem *nsitem,
te_list = lappend(te_list, te);
/* Require read access to each column */
- markVarForSelectPriv(pstate, varnode, rte);
+ markVarForSelectPriv(pstate, varnode);
}
Assert(name == NULL && var == NULL); /* lists not the same length? */