当前位置:网站首页>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
……
边栏推荐
- Data driven excel reading and writing
- Splicing of.Net distribution with outlook mail format and table
- Redis数据结构
- kubernetes error
- 474-82(8、221、300)
- Pytest interface automation test framework | control test case execution
- FPGA - SPI bus control flash (3) including code
- String function 1 of C language
- 多表查询之_外连接
- Redis分布式锁待续
猜你喜欢

Mysql database foundation

Application of encryption technology

理解多态,让不同的“人”做同一件事情会产生不同的结果

Delete all data of specified query criteria in Oracle

C语言之字符串函数一

Sentinel link mode flow control failure solution

加密技术应用
![[translation] Introduction to go RPC: Hello World](/img/dd/7887f056bc031fe50253078dd355d0.png)
[translation] Introduction to go RPC: Hello World

子矩阵的和

The universal esp32c3 configures partition tables based on the Arduino ide framework
随机推荐
kubernetes error
Sentinel link mode flow control failure solution
Redis cluster construction (cluster cluster mode, fragment cluster)
[attack and defense world web] difficulty five-star 15 point advanced question: bug
Longest increasing subsequence variant [deep understanding of the longest increasing sequence]
Sum of submatrix
分布式之 CAP 原则
Structured streaming programming model (input table, result table, output mode...)
【译】Go RPC 入门:Hello World
权重分析——熵权法
Redis主从同步机制
Try new methods
进步成长的快乐
尝试新的方法
Deep learning 9 basic concepts of feedforward neural networks
C语言详解系列——函数的认识(2)如何使用函数实现交换两个整型变量的值
php实现 Stripe订阅
Linked list - 707. Design linked list
子矩阵的和
STL案例-评委打分