summaryrefslogtreecommitdiff
path: root/src/tutorial
diff options
context:
space:
mode:
authorDean Rasheed <dean.a.rasheed@gmail.com>2019-04-02 08:20:55 +0100
committerDean Rasheed <dean.a.rasheed@gmail.com>2019-04-02 08:20:55 +0100
commit1b9a2f458b36747db07aff6631ade56c24cfda03 (patch)
treeb27c17a00dd0d3321ccfc6c3dd5ddb12798ce29f /src/tutorial
parente49dc9ab14b287f5721b503c96c487bd9fb05a51 (diff)
Perform RLS subquery checks as the right user when going via a view.
When accessing a table with RLS via a view, the RLS checks are performed as the view owner. However, the code neglected to propagate that to any subqueries in the RLS checks. Fix that by calling setRuleCheckAsUser() for all RLS policy quals and withCheckOption checks for RTEs with RLS. Back-patch to 9.5 where RLS was added. Per bug #15708 from daurnimator. Discussion: https://postgr.es/m/15708-d65cab2ce9b1717a@postgresql.org
Diffstat (limited to 'src/tutorial')
0 files changed, 0 insertions, 0 deletions