当前位置:网站首页>GBase 8c 访问权限查询函数(三)
GBase 8c 访问权限查询函数(三)
2022-07-24 00:16:00 【大壮十二】
has_directory_privilege(user, directory, privilege)
描述:指定用户是否有访问directory的权限。
表1 参数类型说明
参数名 | 合法入参类型 |
user | name, oid |
directory | text, oid |
privilege | text |
返回类型:Boolean
has_directory_privilege(directory, privilege)
描述:当前用户是否有访问directory的权限,合法参数类型请参见表1。
返回类型:Boolean
has_foreign_data_wrapper_privilege(user, fdw, privilege)
描述:指定用户是否有访问外部数据封装器的权限。
表2 参数类型说明
参数名 | 合法入参类型 |
user | name, oid |
fdw | text, oid |
privilege | text |
返回类型:Boolean
has_foreign_data_wrapper_privilege(fdw, privilege)
描述:当前用户是否有访问外部数据封装器的权限。合法参数类型请参见表2。
返回类型:Boolean
备注:has_foreign_data_wrapper_privilege检查用户是否能以特定方式访问外部数据封装器。其参数类似has_table_privilege。访问权限类型必须是USAGE。
has_function_privilege(user, function, privilege)
描述:指定用户是否有访问函数的权限。
表3 参数类型说明
参数名 | 合法入参类型 |
user | name, oid |
function | text, oid |
privilege | text |
返回类型:Boolean
has_function_privilege(function, privilege)
描述:当前用户是否有访问函数的权限。合法参数类型请参见表3。
返回类型:Boolean
备注:has_function_privilege检查一个用户是否能以指定方式访问一个函数。其参数类似has_table_privilege。使用文本字符而不是OID声明一个函数时,允许输入的类型和regprocedure数据类型一样(请参考对象标识符类型)。访问权限类型必须是EXECUTE、ALTER、DROP或COMMENT。
边栏推荐
- Blog expression Encyclopedia
- 进步成长的快乐
- 【微信小程序】拍卖商品详情页设计与交互实现(包含倒计时、实时更新出价)
- My meeting of OA project (query)
- Deep learning 9 basic concepts of feedforward neural networks
- Pytest interface automation test framework | summary
- Browser cannot access Minio
- [attack and defense world web] difficulty five-star 15 point advanced question: bug
- 深度学习之 9 前馈神经网络 基本概念
- mysql数据库基础
猜你喜欢
随机推荐
The name in Qiankun subapplication package.json becomes the default path
My meeting of OA project (query)
Application of encryption technology
Deep learning 9 basic concepts of feedforward neural networks
Single target tracking - [correlation filtering] mosse:visual object tracking using adaptive correlation filters
Write all the code as soon as you change the test steps? Why not try yaml to realize data-driven?
I like investing
[translation] Introduction to go RPC: Hello World
jenkins下使用声明式(Declarative)和Jenkinsfile的方式构建Pipeline流水线项目
今天在家里补觉
Multi table query_ External connection
How to open a low commission account? Is it safe?
链表——206. 反转链表(这题很重要)
Space shooting lesson 07: add graphics
Delete all data of specified query criteria in Oracle
作为一个程序员,有什么想对新人说的吗?
多表查询之_外连接
Problems encountered in pytorch
【Android Kotlin】Property、Getter 和 Setter
Pipeline pipeline project is built by declarative and jenkinsfile under Jenkins




![[Android kotlin] property, getter and setter](/img/f7/a3b79e3f7c4396a240eb5749c450d3.png)




