当前位置:网站首页>Gbase 8C access authority query function (6)
Gbase 8C access authority query function (6)
2022-07-24 00:17:00 【Dazhuang twelve】
pg_has_role(role, privilege)
describe : Whether the current user has the permission of the role .
Return type :Boolean
remarks :pg_has_role Check whether users can access a role in a specific way . Its parameters are similar has_table_privilege, except public Cannot be used as user name . The access permission type must be MEMBER or USAGE Some combinations of . MEMBER It represents the direct or indirect membership in a role ( That is to say SET ROLE Authority ), and USAGE Indicates no need to pass SET ROLE Also directly own the permission of the role .
has_any_privilege(user, privilege)
describe : Specify whether the user has an item ANY jurisdiction , If you query multiple permissions at the same time , As long as there is one of them, it returns true.
Return type :Boolean
surface 1 Parameter type description
Parameter name | Legal input type | describe | Value range |
user | name | user | User name already exists . |
privilege | text | ANY jurisdiction | Optional value : 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] |
边栏推荐
- 高数_第1章空间解析几何与向量代数__两点距
- The universal esp32c3 configures partition tables based on the Arduino ide framework
- 分布式之 CAP 原则
- Webrtc 1 to 1 - basic architecture and directory
- 今天在家里补觉
- Ansible command auto completion
- Try new methods
- Scheme for importing XMIND use cases into tapd (with code)
- Pytest interface automated testing framework | how to get help
- Jenkins uses sonarqube to build pipeline code review project
猜你喜欢
随机推荐
GBase 8c系统表信息函数(三)
Codeforces Round #807 (Div. 2)(A-D)
ESP8266————AT指令+网络透传
Redis 主从、哨兵、集群架构有缺点比较
As a programmer, is there anything you want to say to the newcomer?
Space shooting lesson 08: improved collision
What is restful verb
Gbase 8C bit string operator (I)
jenkins下使用声明式(Declarative)和Jenkinsfile的方式构建Pipeline流水线项目
GBase 8c 会话信息函数(一)
总结谋划明方向 凝心聚力开新局——和数软件对口援疆项目显成效
Automatic escape processing in JMeter
Redis 集群hash分片算法(槽位定位算法)
自己喜欢投资
473-82(40、662、31、98、189)
My meeting of OA project (query)
Pytest interface automated testing framework | how to get help
Summarize the plan, clarify the direction, concentrate and start a new situation -- the Counterpart Assistance Project of hexu software has achieved remarkable results
Material return on investment
NGFW portal authentication experiment








