must be owner of materialized view #16946
dilly-sixmo
started this conversation in
Contribute to Supabase
Replies: 2 comments 1 reply
-
I ran into the same issue and was able to solve by adding a "security definer" to the function, per this link https://stackoverflow.com/questions/67530999/error-must-be-owner-of-materialized-view-postgresql |
Beta Was this translation helpful? Give feedback.
0 replies
-
Just ran into this today. The stackoverflow is dead do you have another link? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug report
Describe the bug
I created a materialized view along with a function to refresh it and a few triggers. The update function returns an error that says "must be owner of materialized view department_monthly_fees".
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
The refresh function should fire, updating the materialized view
What I tried
Result: Failed to run sql query: permission denied for schema public
Result: Failed to run sql query: unrecognized parameter "security_invoker"
System information
Beta Was this translation helpful? Give feedback.
All reactions