当前位置:网站首页>GBase 8c访问权限查询函数(六)
GBase 8c访问权限查询函数(六)
2022-07-24 00:16:00 【大壮十二】
pg_has_role(role, privilege)
描述:当前用户是否有角色的权限。
返回类型:Boolean
备注:pg_has_role检查用户是否能以特定方式访问一个角色。其参数类似has_table_privilege,除了public不能用做用户名。访问权限类型必须是MEMBER或USAGE的一些组合。 MEMBER表示的是角色中的直接或间接成员关系(也就是SET ROLE的权限),而USAGE表示无需通过SET ROLE也直接拥有角色的使用权限。
has_any_privilege(user, privilege)
描述:指定用户是否有某项ANY权限,若同时查询多个权限,只要具有其中一个则返回true。
返回类型:Boolean
表1 参数类型说明
参数名 | 合法入参类型 | 描述 | 取值范围 |
user | name | 用户 | 已存在的用户名。 |
privilege | text | ANY权限 | 可选取值: CREATE ANY TABLE [WITH ADMIN OPTION] ALTER ANY TABLE [WITH ADMIN OPTION] DROP ANY TABLE [WITH ADMIN OPTION] SELECT ANY TABLE [WITH ADMIN OPTION] INSERT ANY TABLE [WITH ADMIN OPTION] UPDATE ANY TABLE [WITH ADMIN OPTION] DELETE ANY TABLE [WITH ADMIN OPTION] CREATE ANY SEQUENCE [WITH ADMIN OPTION] CREATE ANY INDEX [WITH ADMIN OPTION] CREATE ANY FUNCTION [WITH ADMIN OPTION] EXECUTE ANY FUNCTION [WITH ADMIN OPTION] CREATE ANY PACKAGE [WITH ADMIN OPTION] EXECUTE ANY PACKAGE [WITH ADMIN OPTION] CREATE ANY TYPE [WITH ADMIN OPTION] |
边栏推荐
- 【语音合成】TensorFlowTTS 中文文本转语音
- Xmind用例导入到TAPD的方案(附代码)
- webrtc 1对1 -基本架构与目录
- [translation] Introduction to go RPC: Hello World
- The differences between text and image drawing, data storage, localstorage, sessionstorage, and cookies
- STL case - judges' scoring
- 子矩阵的和
- Scheme for importing XMIND use cases into tapd (with code)
- [opencv] - when the parameter type of cv.threshold() function is a number, what does it mean
- 【HCIP】MGRE环境下OSPF实验,含多进程双向重发布及OSPF特殊区域
猜你喜欢

Nacos

Beijing University qingniaochangping Campus: how about the current situation of operation and maintenance employment? Are skills required?
![[hcip] OSPF experiment under mGRE environment, including multi process bidirectional republication and OSPF special area](/img/9b/f40054d91bda3a018e29b106ccd8bb.jpg)
[hcip] OSPF experiment under mGRE environment, including multi process bidirectional republication and OSPF special area

Webrtc 1 to 1 - basic architecture and directory

加密技术应用

太空射击第08课: 改进的碰撞

The implementation in Oracle replaces the specified content of the specified column with the desired content

Jenkins uses sonarqube to build pipeline code review project

Xmind用例导入到TAPD的方案(附代码)

Super simple training of force deduction and problem brushing
随机推荐
IIS deployment.Netcore
How to open an account and buy financial products with 6% income?
Scheme for importing XMIND use cases into tapd (with code)
Pytest interface automation test framework | summary
Space shooting lesson 08: improved collision
FPGA - SPI bus control flash (3) including code
Splicing of.Net distribution with outlook mail format and table
Write all the code as soon as you change the test steps? Why not try yaml to realize data-driven?
Super simple training of force deduction and problem brushing
加密技术应用
The name in Qiankun subapplication package.json becomes the default path
【微信小程序】拍卖商品详情页设计与交互实现(包含倒计时、实时更新出价)
kubernetes error
深度学习之 9 前馈神经网络2:实现前馈神经网络,模型调优
Pytest interface automation testing framework | multi process running case
July 23, 2022 - mapper file description
pytorch中with torch.no_grad(): && model.eval()
What are blue-green deployment, Canary release and a/b test
太空射击 第07课: 添加图形
太空射击第08课: 改进的碰撞