aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/numeric.c
diff options
context:
space:
mode:
authorStephen Frost <sfrost@snowman.net>2015-09-15 15:49:40 -0400
committerStephen Frost <sfrost@snowman.net>2015-09-15 15:49:40 -0400
commit68b5201128c2d0c8a3a0051ff7c2534b037e1eab (patch)
tree65c1136b6a74c96dcebe7ab99578af8caf08c770 /src/backend/utils/adt/numeric.c
parent23a4b897f731e1a2be7fe989a34016d7a6287148 (diff)
downloadpostgresql-68b5201128c2d0c8a3a0051ff7c2534b037e1eab.tar.gz
postgresql-68b5201128c2d0c8a3a0051ff7c2534b037e1eab.zip
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/backend/utils/adt/numeric.c')
0 files changed, 0 insertions, 0 deletions