当前位置:网站首页>GBase 8c系统表-pg_class
GBase 8c系统表-pg_class
2022-07-03 02:18:00 【大壮十二】
pg_class系统表存储数据库对象信息及其之间的关系。
名称 | 类型 | 引用 | 描述 |
oid | oid | 行标识符(隐藏属性,必须被显式选择才会显示) | |
relname | name | 表、索引、视图等的名字 | |
relnamespace | oid | pg_namespace.oid | 包含该关系的名字空间的OID |
reltype | oid | pg_type.oid | 可能存在的表行类型所对应数据类型的OID(对索引为0,索引没有pg_type项) |
reloftype | oid | pg_type.oid | 对于有类型的表,为底层组合类型的OID,对于其他所有关系为0 |
relowner | oid | pg_authid.oid | 关系的拥有者 |
relam | oid | pg_am.oid | 如果这是一个索引,表示索引使用的访问方法(B树、哈希等) |
relfilenode | oid | 该关系的磁盘文件的名字,0表示这是一个“映射”关系,其磁盘文件名取决于低层状态 | |
reltablespace | oid | pg_tablespace.oid | 该关系所存储的表空间。如果为0,使用数据库的默认表空间。(如果关系无磁盘文件时无意义) |
relpages | int4 | 该表磁盘表示的尺寸,以页面计(页面尺寸为BLCKSZ)。这只是一个由规划器使用的估计值。它被VACUUM、ANALYZE以及一些DDL命令(如CREATE INDEX)所更新。 | |
reltuples | float4 | 表中的行数。这只是一个由规划器使用的估计值。它被VACUUM、ANALYZE以及一些DDL命令(如CREATE INDEX)所更新。 | |
relallvisible | int4 | 在表的可见性映射表中被标记为全可见的页数。这只是一个由规划器使用的估计值。它被VACUUM、ANALYZE以及一些DDL命令(如CREATE INDEX)所更新。 | |
reltoastrelid | oid | pg_class.oid | 与该表相关联的TOAST表的OID,如果没有则为0。TOAST表将大属性“线外”存储在一个二级表中。 |
relhasindex | bool | 如果这是一个表并且其上建有(或最近建有)索引则为真 | |
relisshared | bool | 如果该表在集簇中的所有数据库间共享则为真。只有某些系统目录(如pg_database)是共享的。 | |
relpersistence | char | p = 永久表,u = 无日志表, t = 临时表 | |
relkind | char | r = 普通表,i = 索引, S = 序列,t = TOAST 表,v = 视图, m = 物化视图, c = 组合类型, f = 外部表, p = 分区表 | |
relnatts | int2 | 关系中用户列的数目(系统列不计算在内)。在pg_attribute中必须有这么多对应的项。另请参阅pg_attribute.attnum。 | |
relchecks | int2 | 表上CHECK约束的数目 | |
relhasoids | bool | 如果为关系的每一行生成一个OID则为真 | |
relhaspkey | bool | 如果表有(或曾有)一个主键则为真 | |
relhasrules | bool | 如果表有(或曾有)规则则为真 | |
relhastriggers | bool | 如果表有(或曾有)触发器则为真 | |
relhassubclass | bool | 如果表有(或曾有)任何继承子女则为真 | |
relrowsecurity | bool | 如果表上启用了行级安全性则为真 | |
relforcerowsecurity | bool | 如果行级安全性(启用时)也适用于表拥有者则为真 | |
relispopulated | bool | 如果表已被填充则为真(对于所有关系该列都为真,但对于某些物化视图却不是) | |
relreplident | char | 用来为行形成“replica identity”的列: d = 默认 (主键,如果存在), n = 无, f = 所有列 i = 索引的indisreplident被设置或者为默认 | |
relispartition | bool | 如果表是分区,则为真 | |
relfrozenxid | xid | 在此之前的所有事务ID在表中已经被替换为一个永久的(“冻结的”) 事务ID。这用于跟踪表是否需要被清理,以便阻止事务ID回卷或者允许pg_xact被收缩。如果该关系不是一个表则为0(InvalidTransactionId)。 | |
relminmxid | xid | 在此之前的多事务ID在表中已经被替换为一个事务ID。这被用于跟踪表是否需要被清理,以阻止 多事务ID回卷或者允许pg_multixact被收缩。如果关系不是一个表则 为0(InvalidMultiXactId)。 | |
relacl | aclitem[] | 访问权限 | |
reloptions | text[] | 访问方法相关的选项,以“keyword=value”字符串形式 | |
relpartbound | pg_node_tree | 如果表是分区(请参阅relispartition), 则是分区绑定的内部表示形式 |
边栏推荐
- MySQL learning 03
- Awk from getting started to being buried (2) understand the built-in variables and the use of variables in awk
- y54.第三章 Kubernetes从入门到精通 -- ingress(二七)
- [shutter] pull the navigation bar sideways (drawer component | pageview component)
- 4. 类和对象
- Memory pool (understand the process of new developing space from the perspective of kernel)
- Detailed introduction to the usage of Nacos configuration center
- GBase 8c系统表-pg_collation
- Hard core observation 547 large neural network may be beginning to become aware?
- 微信小程序开发工具 POST net::ERR_PROXY_CONNECTION_FAILED 代理问题
猜你喜欢
What are MySQL locks and classifications
MySQL learning 03
y54.第三章 Kubernetes从入门到精通 -- ingress(二七)
Wechat applet development tool post net:: err_ PROXY_ CONNECTION_ Failed agent problem
Flink CDC mongoDB 使用及Flink sql解析monggo中复杂嵌套JSON数据实现
返回一个树形结构数据
[shutter] shutter debugging (debugging fallback function | debug method of viewing variables in debugging | console information)
Wechat applet Development Tool Post net:: Err Proxy Connexion Problèmes d'agent défectueux
机器学习笔记(持续更新中。。。)
Pytorch convolution network regularization dropblock
随机推荐
Unrecognized SSL message, plaintext connection?
awk从入门到入土(1)awk初次会面
Current situation and future of Web3 in various countries
How can retail enterprises open the second growth curve under the full link digital transformation
Thread safe singleton mode
Detailed analysis of micro service component sentinel (hystrix)
The Sandbox阐释对元宇宙平台的愿景
[Yu Yue education] reference materials of love psychology of China University of mining and technology
通达OA v12流程中心
Socket编程
Word word word
Introduce in detail how to communicate with Huawei cloud IOT through mqtt protocol
stm32F407-------ADC
Use go language to realize try{}catch{}finally
Detailed introduction to the usage of Nacos configuration center
awk从入门到入土(3)awk内置函数printf和print实现格式化打印
Tongda OA V12 process center
Button button adaptive size of wechat applet
Wechat applet Development Tool Post net:: Err Proxy Connexion Problèmes d'agent défectueux
苏世民:25条工作和生活原则