Cause '*' and 'foo.*' notations to mark the referenced RTE(s) as
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 14 Aug 2006 23:39:32 +0000 (23:39 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 14 Aug 2006 23:39:32 +0000 (23:39 +0000)
commit78f7a1648fe605c7f47aabfe7693daf081147f52
tree4a28cb363a30a2fa8fb77bc17d4a4d60d4a9ccb8
parent228834c7b30db344c73e6a0ed37171ebbacb9a5d
Cause '*' and 'foo.*' notations to mark the referenced RTE(s) as
requiring read permissions.  Up till now there was no possible case
in which the RTEs wouldn't already have ACL_SELECT set ... but now that
you can say something like 'INSERT INTO foo ... RETURNING *' this is
an essential step.  With this commit, a RETURNING clause adds the
requirement for SELECT permissions on the target table if and only if
the clause actually reads the value of at least one target-table column.
src/backend/parser/parse_clause.c
src/backend/parser/parse_target.c