List grants and privileges for a materialized view in PostgreSQL
问题 I need to determine what privileges are currently granted for some materialized views in my database. The query to do this for a table or standard view is pretty straight forward: SELECT grantee, string_agg(privilege_type, ', ') AS privileges FROM information_schema.table_privileges WHERE table_schema = 'some_schema' AND table_name = 'some_table' GROUP by grantee; That said, there doesn't seem to be an analogous table for materialized views. Where does PostgreSQL store this information? 回答1: