I have a function named schema.func
, I want to give a permission what execute schema.func
to the user.
I try to use
GRANT EXECUTE ON schema.func to my_user;
but it is not working. When I perform this function it throws the error:
permission denied for schema ex
I know I can use GRANT USAGE ON SCHEMA
, but this is not what I want, I just need permissions for specific functions, not all functions in the schema.
Can I do that?