postgre查询所有用户,postgre中查询用户所拥有的权限

select * from pg_roles;

select * from pg_user;


权限查询:

select * from information_schema.table_privileges where grantee='cc';

你可能感兴趣的:(数据库)