PostgreSQL: 権限を確認するSQL
1148 ワード
PostgreSQLでどのロールがどのテーブルで何が許可されているかの権限を確認するSQLです。
select grantee, table_name, privilege_type
from information_schema.role_table_grants
where table_schema = 'public' order by grantee, table_name, privilege_type;
実行結果の例
カラム単位の細かい権限の確認したい場合は、次の記事で紹介する方法をご覧ください。
Author And Source
この問題について(PostgreSQL: 権限を確認するSQL), 我々は、より多くの情報をここで見つけました https://qiita.com/suin/items/63b127e2cc5dc4ea87e5著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .