aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist
diff options
context:
space:
mode:
authorDean Rasheed <dean.a.rasheed@gmail.com>2019-04-02 08:22:48 +0100
committerDean Rasheed <dean.a.rasheed@gmail.com>2019-04-02 08:22:48 +0100
commit2e606d0ad7984c15f323eacfc333990b93683cc7 (patch)
tree9c95e2539af1869961792eaddf2f539d6e687629 /src/backend/access/gist
parent52e7e4d1dfe6e8f3b0923458cda732e8cb230719 (diff)
downloadpostgresql-2e606d0ad7984c15f323eacfc333990b93683cc7.tar.gz
postgresql-2e606d0ad7984c15f323eacfc333990b93683cc7.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