aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist
diff options
context:
space:
mode:
authorDean Rasheed <dean.a.rasheed@gmail.com>2019-04-02 08:13:59 +0100
committerDean Rasheed <dean.a.rasheed@gmail.com>2019-04-02 08:13:59 +0100
commite2d28c0f404713f564dc2250646551c75172f17b (patch)
tree8eef6e884d4c4dfaab0120e0be1e4d916d4e8731 /src/backend/access/gist
parent280e5f14056bf34a0f52320f659fb93acfda0876 (diff)
downloadpostgresql-e2d28c0f404713f564dc2250646551c75172f17b.tar.gz
postgresql-e2d28c0f404713f564dc2250646551c75172f17b.zip
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/backend/access/gist')
0 files changed, 0 insertions, 0 deletions