当前位置:网站首页>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), 则是分区绑定的内部表示形式 |
边栏推荐
- 4. Classes and objects
- 4. 类和对象
- COM和CN
- Visual yolov5 format data set (labelme JSON file)
- Prohibited package name
- Tongda OA homepage portal workbench
- Comment communiquer avec Huawei Cloud IOT via le Protocole mqtt
- Leetcode 183 Customers who never order (2022.07.02)
- Socket programming
- Create + register sub apps_ Define routes, global routes and sub routes
猜你喜欢

微服务组件Sentinel (Hystrix)详细分析

easyPOI

Thread safe singleton mode

Hard core observation 547 large neural network may be beginning to become aware?
![[shutter] shutter debugging (debugging fallback function | debug method of viewing variables in debugging | console information)](/img/66/0fda43da0d36fc0c9277ca86ece252.jpg)
[shutter] shutter debugging (debugging fallback function | debug method of viewing variables in debugging | console information)
![[Flutter] dart: class;abstract class;factory;类、抽象类、工厂构造函数](/img/06/ab333a4752de27eae2dd937cf579e2.png)
[Flutter] dart: class;abstract class;factory;类、抽象类、工厂构造函数

Detailed analysis of micro service component sentinel (hystrix)

Button button adaptive size of wechat applet

微信小程序开发工具 POST net::ERR_PROXY_CONNECTION_FAILED 代理问题

Tongda OA V12 process center
随机推荐
【CodeForces】CF1338A - Powered Addition【二进制】
全链路数字化转型下,零售企业如何打开第二增长曲线
[Yu Yue education] Jiujiang University material analysis and testing technology reference
微信小程序開發工具 POST net::ERR_PROXY_CONNECTION_FAILED 代理問題
DDL basic operation
Method of removing webpage scroll bar and inner and outer margins
How to deal with cache hot key in redis
File class (add / delete)
GBase 8c系统表-pg_auth_members
Detailed introduction to the usage of Nacos configuration center
[Yu Yue education] reference materials of chemical experiment safety knowledge of University of science and technology of China
How do it students find short-term internships? Which is better, short-term internship or long-term internship?
深度学习笔记(持续更新中。。。)
使用Go语言实现try{}catch{}finally
MySQL学习03
Memory pool (understand the process of new developing space from the perspective of kernel)
Wechat applet Development Tool Post net:: Err Proxy Connexion Problèmes d'agent défectueux
Swift development learning
Kotlin middle process understanding and Practice (II)
stm32F407-------ADC