summaryrefslogtreecommitdiff
path: root/src/include/postgres.h
diff options
context:
space:
mode:
authorStephen Frost2015-09-15 19:49:31 +0000
committerPavan Deolasee2016-10-26 07:45:49 +0000
commit9a2e56b3f9cccffe71cd1691c658bc053200b618 (patch)
tree0fb198415c74f263a631a34bfcbc0e5accd0d0de /src/include/postgres.h
parent612b9cfc3178966962ff85cd7c571583bbdf2da2 (diff)
Enforce ALL/SELECT policies in RETURNING for RLS
For the UPDATE/DELETE RETURNING case, filter the records which are not visible to the user through ALL or SELECT policies from those considered for the UPDATE or DELETE. This is similar to how the GRANT system works, which prevents RETURNING unless the caller has SELECT rights on the relation. Per discussion with Robert, Dean, Tom, and Kevin. Back-patch to 9.5 where RLS was introduced.
Diffstat (limited to 'src/include/postgres.h')
0 files changed, 0 insertions, 0 deletions