当前位置:网站首页>GBase 8c 模式可见性查询函数(一)
GBase 8c 模式可见性查询函数(一)
2022-07-24 00:16:00 【大壮十二】
每个函数执行检查数据库对象类型的可见性。对于函数和操作符,如果在前面的搜索路径中没有相同的对象名称和参数的数据类型,则此对象是可见的。对于操作符类,则要同时考虑名称和相关索引的访问方法。
所有这些函数都需要使用OID来标识要需要检查的对象。如果用户想通过名称测试对象,则使用OID别名类型(regclass、regtype、regprocedure、regoperator、regconfig或regdictionary)将会很方便。
比如,如果一个表所在的模式在搜索路径中,并且在前面的搜索路径中没有同名的表,则这个表是可见的。它等效于表可以不带明确模式修饰进行引用。比如,要列出所有可见表的名称:
gbase=# SELECT relname FROM pg_class WHERE pg_table_is_visible(oid);
relname
------------------------------------------------
pg_type
gs_client_global_keys_args
abc
pg_subscription_oid_index
pg_subscription_subname_index
pgxc_prepared_xacts
pg_shadow
pg_roles
pg_user
pg_group
pg_rules
pg_authid
gs_labels
pg_rlspolicies
gs_auditing_access
……
边栏推荐
- Realize the function of uploading and downloading files and directories similar to RZ and SZ on the native terminal
- Mysql database foundation
- Problems encountered in pytorch
- 加密技术应用
- A lot of happiness in learning
- Nacos
- 一改测试步骤代码就全写?为什么不试试用 Yaml实现数据驱动?
- Summarize the plan, clarify the direction, concentrate and start a new situation -- the Counterpart Assistance Project of hexu software has achieved remarkable results
- Pushgateway+prometheus+grafana build Flink real-time monitoring
- inode、软链接、硬链接
猜你喜欢

kubernetes error

Structured streaming programming model (input table, result table, output mode...)

The differences between text and image drawing, data storage, localstorage, sessionstorage, and cookies

webrtc 1对1 -基本架构与目录

高数_第1章空间解析几何与向量代数__两点距

子矩阵的和

The universal esp32c3 configures partition tables based on the Arduino ide framework

Deep learning 9 feedforward neural network 2: realize feedforward neural network and model optimization

链表——206. 反转链表(这题很重要)

Y75. Chapter IV Prometheus factory monitoring system and practice -- Prometheus alarm setting (VI)
随机推荐
在原生终端实现类似 rz、sz 上传下载文件与目录的功能
【微信小程序】拍卖商品详情页设计与交互实现(包含倒计时、实时更新出价)
YOLOv1
C language explanation series -- understanding of functions (2) how to use functions to exchange the values of two integer variables
Xmind用例导入到TAPD的方案(附代码)
July 23, 2022 - mapper file description
权重分析——熵权法
作为一个程序员,有什么想对新人说的吗?
Realize the function of uploading and downloading files and directories similar to RZ and SZ on the native terminal
Redis分布式锁待续
JMeter中的自动转义处理
太空射击第08课: 改进的碰撞
作为一个程序员,有什么想对新人说的吗?
C语言详解系列——函数的认识(2)如何使用函数实现交换两个整型变量的值
Space shooting lesson 07: add graphics
Happiness of progress and growth
Sentinel link mode flow control failure solution
Y75. Chapter IV Prometheus factory monitoring system and practice -- Prometheus alarm setting (VI)
kubernetes error
Problems encountered in pytorch