日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

postgresql后期给开发建表的权限问题

發布時間:2024/9/5 编程问答 42 豆豆
生活随笔 收集整理的這篇文章主要介紹了 postgresql后期给开发建表的权限问题 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

1、切換到指定數據庫

\c axyh_360p_hunan_mobile_security_manage View Code

2、回收權限

1 revoke connect on database axyh_360p_hunan_mobile_security_manage from public; 回收權限

3、設置授權后的權限

grant對以及在數據庫的表進行授權

alter default 對新建的表進行授權延續

1 alter default privileges for user bd_zhangranran in schema public grant insert,select,update,delete,references,trigger on tables to bd_weidubin; 2 運維人員可能會進行重新導表,所以postgres用戶也要進行授權延續操作 3 alter default privileges for user postgres in schema public grant insert,select,update,delete,references,trigger on tables to bd_weidubin; 授權延續

后期zhangjun用戶在publi模式下建的表具有insert,select,update,delete,references,trigger權限。grant是對當時及以前的。alter default是對之后的

4、授予連接權限

1 grant connect on database axyh_360p_hunan_mobile_security_manage to bd_miaoyongchao; 授予連接權限

?

連接文檔:
https://blog.csdn.net/wanghai__/article/details/6337570
權限文檔:
http://www.freeoa.net/osuport/db/the-postgres-privileges_3112.html

轉載于:https://www.cnblogs.com/charon2/p/11314751.html

總結

以上是生活随笔為你收集整理的postgresql后期给开发建表的权限问题的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。