The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/13/sql-refreshmaterializedview.html Description:
I hope everyone is well. I have not found it explicitly specify anywhere but from my experience I have gathered that when you refresh a materialised view as say a Superuser it will use the privileges of the owner of the materialized view to run the underlying query. I am sure this bit of information would be handy to have specified in the documentation on refreshing materialised views so as to consider that the owner of the materialized view has the correct privileges to the objects referenced in the query. Stay safe, Ettienne.