Given a database role, user1user1
, a function something()
defined as a stored procedure and a view created like:
CREATE VIEW view1 AS select * from something()
And, given this permissions:
REVOKE ALL ON FUNCTION something FROM user1
REVOKE SELECT ON view1 FROM user1
When I run SELECT * FROM view1
, I get an error permission denied for function something()
.
My question is, if I revoke the select permissions on the view, why the function is called? I was expecting to receive something like:
permission denied for relation view1
Thank you!