4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

PostgreSQL: 権限を確認するSQL

Last updated at Posted at 2021-07-14

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;

実行結果の例

CleanShot 2021-07-14 at 10.31.31@2x.png

カラム単位の細かい権限の確認したい場合は、次の記事で紹介する方法をご覧ください。

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?