十年網(wǎng)站開發(fā)經(jīng)驗 + 多家企業(yè)客戶 + 靠譜的建站團隊
量身定制 + 運營維護+專業(yè)推廣+無憂售后,網(wǎng)站問題一站解決
創(chuàng)新互聯(lián)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、查看存儲過程函數(shù)相關權限表
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;#連接數(shù)限制
看完了這篇文章,相信你對查看postgresql用戶權限的方法有了一定的了解,想了解更多相關知識,歡迎關注創(chuàng)新互聯(lián)-成都網(wǎng)站建設公司行業(yè)資訊頻道,感謝各位的閱讀!