創(chuàng)新互聯www.cdcxhl.cn八線動態(tài)BGP香港云服務器提供商,新人活動買多久送多久,劃算不套路!
小編給大家分享一下查看postgresql用戶權限的方法,希望大家閱讀完這篇文章后大所收獲,下面讓我們一起去探討吧!
1、查看某用戶的表權限
select * from information_schema.table_privileges where grantee='user_name';
2、查看usage權限表
select * from information_schema.usage_privileges where grantee='user_name';
3、查看存儲過程函數相關權限表
select * from information_schema.routine_privileges where grantee='user_name';
4、建用戶授權
create user user_name; alter user user_name with password ''; alter user user_name with CONNECTION LIMIT 20;#連接數限制
看完了這篇文章,相信你對查看postgresql用戶權限的方法有了一定的了解,想了解更多相關知識,歡迎關注創(chuàng)新互聯-成都網站建設公司行業(yè)資訊頻道,感謝各位的閱讀!