当前位置:网站首页>Gbase 8C system table PG_ class
Gbase 8C system table PG_ class
2022-07-03 02:22:00 【Dazhuang twelve】
pg_class System tables store database object information and the relationship between them .
name | type | quote | describe |
oid | oid | Row identifier ( Hidden attribute , Must be explicitly selected to display ) | |
relname | name | surface 、 Indexes 、 Name of view, etc | |
relnamespace | oid | pg_namespace.oid | The name of the namespace that contains the relationship OID |
reltype | oid | pg_type.oid | Data types corresponding to possible table row types OID( The index is 0, No index pg_type term ) |
reloftype | oid | pg_type.oid | For tables with types , For the underlying composite type OID, For all other relationships 0 |
relowner | oid | pg_authid.oid | The owner of the relationship |
relam | oid | pg_am.oid | If this is an index , Indicates the access method used by the index (B Trees 、 Hash, etc ) |
relfilenode | oid | The name of the disk file for the relationship ,0 That means this is one “ mapping ” Relationship , The disk file name depends on the low-level state | |
reltablespace | oid | pg_tablespace.oid | The tablespace that the relationship stores . If 0, Use the default tablespace of the database .( If the relationship is meaningless without disk files ) |
relpages | int4 | This table shows the size of the disk , In pages ( The page size is BLCKSZ). This is just an estimate used by the planner . It has been VACUUM、ANALYZE As well as some DDL command ( Such as CREATE INDEX) Updated . | |
reltuples | float4 | Number of rows in the table . This is just an estimate used by the planner . It has been VACUUM、ANALYZE As well as some DDL command ( Such as CREATE INDEX) Updated . | |
relallvisible | int4 | The number of pages marked as fully visible in the table's visibility mapping table . This is just an estimate used by the planner . It has been VACUUM、ANALYZE As well as some DDL command ( Such as CREATE INDEX) Updated . | |
reltoastrelid | oid | pg_class.oid | Associated with this table TOAST Tabular OID, If not, it is 0.TOAST The table will have large attributes “ Off line ” Stored in a secondary table . |
relhasindex | bool | If this is a table and there is ( Or recently built ) The index is true | |
relisshared | bool | True if the table is shared among all databases in the cluster . Only some system directories ( Such as pg_database) Is Shared . | |
relpersistence | char | p = A permanent watch ,u = No log table , t = A temporary table | |
relkind | char | r = Common watch ,i = Indexes , S = Sequence ,t = TOAST surface ,v = View , m = Materialized view , c = Combination type , f = External table , p = Partition table | |
relnatts | int2 | The number of user columns in the relationship ( System columns are not counted ). stay pg_attribute There must be so many corresponding items in . See also pg_attribute.attnum. | |
relchecks | int2 | On the table CHECK Number of constraints | |
relhasoids | bool | If one is generated for each row of the relationship OID It is true | |
relhaspkey | bool | If the table has ( Or have ) A primary key is true | |
relhasrules | bool | If the table has ( Or have ) The rule is true | |
relhastriggers | bool | If the table has ( Or have ) The trigger is true | |
relhassubclass | bool | If the table has ( Or have ) Any inherited child is true | |
relrowsecurity | bool | True if row level security is enabled on the table | |
relforcerowsecurity | bool | If row level security ( When enabled ) If it also applies to the table owner, it is true | |
relispopulated | bool | True if the table has been filled ( This column is true for all relationships , But for some materialized views, it is not ) | |
relreplident | char | Used to form... For rows “replica identity” The column of : d = Default ( Primary key , If there is ), n = nothing , f = All columns i = Indexed indisreplident Set or default | |
relispartition | bool | If the table is partitioned , It is true | |
relfrozenxid | xid | All transactions before ID Has been replaced in the table with a permanent (“ Frozen ”) Business ID. This is used to track whether the table needs to be cleaned up , To prevent transactions ID Roll back or allow pg_xact Contracted . If the relationship is not a table, it is 0(InvalidTransactionId). | |
relminmxid | xid | Multiple transactions prior to this ID It has been replaced with a transaction in the table ID. This is used to track whether the table needs to be cleaned up , To prevent A lot of business ID Roll back or allow pg_multixact Contracted . If the relationship is not a table by 0(InvalidMultiXactId). | |
relacl | aclitem[] | Access right | |
reloptions | text[] | Access method related options , With “keyword=value” String form | |
relpartbound | pg_node_tree | If the table is partitioned ( see also relispartition), Is the internal representation of partition binding |
边栏推荐
- [Flutter] dart: class; abstract class; factory; Class, abstract class, factory constructor
- Qt之QComboBox添加QCheckBox(下拉列表框插入复选框,含源码+注释)
- GBase 8c系统表pg_database
- GBase 8c系统表-pg_amproc
- 创建+注册 子应用_定义路由,全局路由与子路由
- leetcode961. Find the elements repeated N times in the array with length 2n
- What are MySQL locks and classifications
- Producer consumer model based on thread pool (including blocking queue)
- Redis: simple use of redis
- [shutter] top navigation bar implementation (scaffold | defaulttabcontroller | tabbar | tab | tabbarview)
猜你喜欢

使用Go语言实现try{}catch{}finally

How do it students find short-term internships? Which is better, short-term internship or long-term internship?

Memory pool (understand the process of new developing space from the perspective of kernel)

What are MySQL locks and classifications

通达OA 首页门户工作台

Oauth2.0 authentication, login and access "/oauth/token", how to get the value of request header authorization (basictoken)???

内存池(内核角度理解new开辟空间的过程)

Introduce in detail how to communicate with Huawei cloud IOT through mqtt protocol

Create + register sub apps_ Define routes, global routes and sub routes

通达OA v12流程中心
随机推荐
Summary of ES6 filter() array filtering methods
stm32F407-------DMA
Detailed introduction to the deployment and usage of the Nacos registry
Y54. Chapter III kubernetes from introduction to mastery -- ingress (27)
UDP receive queue and multiple initialization test
苏世民:25条工作和生活原则
[shutter] bottom navigation bar implementation (bottomnavigationbar bottom navigation bar | bottomnavigationbaritem navigation bar entry | pageview)
easyPOI
COM和CN
Method of removing webpage scroll bar and inner and outer margins
Su Shimin: 25 principles of work and life
人脸识别6- face_recognition_py-基于OpenCV使用Haar级联与dlib库进行人脸检测及实时跟踪
内存池(内核角度理解new开辟空间的过程)
Qt之QComboBox添加QCheckBox(下拉列表框插入复选框,含源码+注释)
4. Classes and objects
es6 filter() 数组过滤方法总结
4. 类和对象
[shutter] pull the navigation bar sideways (drawer component | pageview component)
Machine learning notes (constantly updating...)
Kotlin middle process understanding and Practice (I)