SYSTEM CATALOG系统目录表
pg_class
表、索引、序列、视图 (“关系”)
系统目录表 引入 9.0(基线) 现存至 20 devel 9 次结构变更
版本轨迹
相对 PostgreSQL 17:新增 1 个字段。
目录pg_class描述了具有列或与表类似的其他对象。这包括索引(但请参见pg_index)、序列(但请参见pg_sequence)、视图、物化视图、复合类型和TOAST表;请参见relkind。 在下面,当我们指的是所有这些类型的对象时,我们称之为“关系(relations)”。并非所有pg_class的列对所有关系类型都有意义。
字段
PostgreSQL 18 的 34 个字段,按定义顺序排列。说明默认用本站手册的译文,没有译文的按英文原文显示。
| 字段 | 类型 | 说明 |
|---|---|---|
oid
|
oidNOT NULL
|
行标识符 |
relname
|
nameNOT NULL
|
表、索引、视图等的名字 |
relnamespace
|
oidNOT NULL
pg_namespace.oid
|
包含该关系的名字空间的OID |
reltype
|
oidNOT NULL
pg_type.oid
|
该关系可能对应的表行类型的数据类型 OID;对索引为 0,而序列和 TOAST 表没有pg_type项 |
reloftype
|
oidNOT NULL
pg_type.oid
|
对于类型化表,为底层复合类型的 OID;对于其他所有关系则为零 |
relowner
|
oidNOT NULL
pg_authid.oid
|
关系的拥有者 |
relam
|
oidNOT NULL
pg_am.oid
|
用于访问该表或索引的访问方法。如果该关系是序列或者没有磁盘文件,则此字段无意义;分区表除外,对于分区表,如果设置了该字段,则在创建命令未指定时,它优先于 default_table_access_method 来决定用于创建分区的访问方法。 |
relfilenode
|
oidNOT NULL
|
该关系的磁盘文件名;零表示这是一个“映射”关系,其磁盘文件名取决于底层状态 |
reltablespace
|
oidNOT NULL
pg_tablespace.oid
|
存储此关系的表空间。 如果为零,则暗示使用数据库的默认表空间。 如果关系没有磁盘文件,则没有意义, 除了分区表,其中这是在创建命令中未指定时将创建分区的表空间。 |
relpages
|
integerNOT NULL
|
该表磁盘表示的尺寸,以页面计(页面尺寸为BLCKSZ)。这只是一个由规划器使用的估计值。 它被VACUUM、ANALYZE以及一些DDL命令(如CREATE INDEX)所更新。 |
reltuples
|
realNOT NULL
|
表中的存活行数。这只是一个由规划器使用的估计值。 它被VACUUM、ANALYZE以及一些DDL命令(如CREATE INDEX)所更新。 如果该表从未被清理或分析,包含-1的reltuples表示行数是未知的。 |
relallvisible
|
integerNOT NULL
|
在表的可见性映射表中被标记为全可见的页数。这只是一个由规划器使用的估计值。 它被VACUUM、ANALYZE以及一些DDL命令,如CREATE INDEX所更新。 |
relallfrozen
新
|
integerNOT NULL
|
表的可见性映射中被标记为全冻结的页数。这只是一个用于触发自动清理的估计值。 它也可以与 relallvisible 一起,用于安排手工清理以及调优清理冻结行为。 它会被 VACUUM、 ANALYZE 以及一些 DDL 命令(例如 CREATE INDEX)更新。 |
reltoastrelid
|
oidNOT NULL
pg_class.oid
|
与该表相关联的TOAST表的OID,如果没有则为零。TOAST表将大属性“线外”存储在一个二级表中。 |
relhasindex
|
booleanNOT NULL
|
如果这是一个表并且其上建有(或最近建有)索引则为真 |
relisshared
|
booleanNOT NULL
|
如果该表在集簇中的所有数据库间共享则为真。只有某些系统目录(如pg_database)是共享的。 |
relpersistence
|
"char"NOT NULL
|
p = 永久表/序列, u = 不记录 WAL 的表/序列, t = 临时表/序列 |
relkind
|
"char"NOT NULL
|
r = 普通表, i = 索引, S = 序列, t = TOAST表, v = 视图, m = 物化视图, c = 复合类型, f = 外部表, p = 分区表, I = 分区索引 |
relnatts
|
smallintNOT NULL
|
关系中用户列的数量(不计系统列)。在pg_attribute中必须有这么多对应项。 另请参阅pg_attribute.attnum。 |
relchecks
|
smallintNOT NULL
|
表上CHECK约束的数目,参见pg_constraint目录 |
relhasrules
|
booleanNOT NULL
|
如果表有(或曾有)规则则为真,参见pg_rewrite目录 |
relhastriggers
|
booleanNOT NULL
|
如果表有(或曾有)触发器则为真,参见 pg_trigger目录 |
relhassubclass
|
booleanNOT NULL
|
如果表或索引有(或曾经有过)任何继承子类或分区,则为真 |
relrowsecurity
|
booleanNOT NULL
|
如果表上启用了行级安全性则为真,参见 pg_policy目录 |
relforcerowsecurity
|
booleanNOT NULL
|
如果行级安全性(启用时)也适用于表拥有者则为真,参见 pg_policy目录 |
relispopulated
|
booleanNOT NULL
|
如果表已被填充则为真(对于所有关系该列都为真,但对于某些物化视图却不是) |
relreplident
|
"char"NOT NULL
|
用于形成行“复制标识”的列: d = 默认(主键,如果存在), n = 无, f = 所有列, i = 设置了indisreplident的索引(如果该索引已被删除,则效果等同于无) |
relispartition
|
booleanNOT NULL
|
如果表或索引是一个分区,则为真 |
relrewrite
|
oidNOT NULL
pg_class.oid
|
对于在要求表重写的DDL操作期间被写入的新关系,这个域包含原始关系的OID,否则为零。 那种状态仅在内部可见,对于一个用户可见的关系这个域应该从不包含不是零的值。 |
relfrozenxid
|
xidNOT NULL
|
在此之前的所有事务ID在表中已经被替换为一个永久的(“冻结的”) 事务ID。 这用于跟踪表是否需要被清理,以便阻止事务ID回卷或者允许pg_xact被收缩。 如果该关系不是一个表则为0(InvalidTransactionId)。 |
relminmxid
|
xidNOT NULL
|
在此之前的多事务ID在表中已经被替换为一个事务ID。这被用于跟踪表是否需要被清理,以阻止 多事务ID回卷或者允许pg_multixact被收缩。如果关系不是一个表则 为0(InvalidMultiXactId)。 |
relacl
|
aclitem[]
|
访问权限,更多信息参见Section 5.8 |
reloptions
|
text[]
|
访问方法相关的选项,以“keyword=value”字符串形式 |
relpartbound
|
pg_node_tree
|
如果表示一个分区(见relispartition),则为分区边界的内部表示 |
演化历史
相邻两个大版本之间的差异,新的在前。版本号链到该版的字段表。
-
PostgreSQL 19 ← 18 仅描述更新
3 处描述更新
relaclAccess privileges; see Section 5.8 for details Access privileges; see Section 5.9 for detailsrelkindr = ordinary table, i = index, S = sequence, t = TOAST table, v = view, m = materialized view, c = composite type, f = foreign table, p = partitioned table, I = partitioned index r = ordinary table, i = index, S = sequence, t = TOAST table, v = view, m = materialized view, c = composite type, f = foreign table, p = partitioned table, I = partitioned index, g = property graphreltypeThe OID of the data type that corresponds to this table's row type, if any; zero for indexes, sequences, and toast tables, which have no pg_type entry The OID of the data type that corresponds to this table's row type, if any; zero for indexes, sequences, and TOAST tables, which have no pg_type entry
-
PostgreSQL 18 ← 17 结构变更
relallfrozen -
PostgreSQL 17 ← 16 仅描述更新
2 处描述更新
relaclAccess privileges; see Section 5.7 for details Access privileges; see Section 5.8 for detailsrelamIf this is a table or an index, the access method used (heap, B-tree, hash, etc.); otherwise zero (zero occurs for sequences, as well as relations without storage, such as views) The access method used to access this table or index. Not meaningful if the relation is a sequence or has no on-disk file, except for partitioned tables, where, if set, it takes precedence over default_table_access_method when determining the access method to use for partitions created when one is not specified in the creation command.
-
PostgreSQL 15 ← 14 仅描述更新
2 处描述更新
relhassubclassTrue if table or index has (or once had) any inheritance children True if table or index has (or once had) any inheritance children or partitionsrelpersistencep = permanent table, u = unlogged table, t = temporary table p = permanent table/sequence, u = unlogged table/sequence, t = temporary table/sequence
-
PostgreSQL 14 ← 13 仅描述更新
8 处描述更新
relamIf this is a table or an index, the access method used (heap, B-tree, hash, etc.) If this is a table or an index, the access method used (heap, B-tree, hash, etc.); otherwise zero (zero occurs for sequences, as well as relations without storage, such as views)relforcerowsecurityTrue if row level security (when enabled) will also apply to table owner; see pg_policy catalog True if row-level security (when enabled) will also apply to table owner; see pg_policy catalogreloftypeFor typed tables, the OID of the underlying composite type, zero for all other relations For typed tables, the OID of the underlying composite type; zero for all other relationsrelrewriteFor new relations being written during a DDL operation that requires a table rewrite, this contains the OID of the original relation; otherwise 0. That state is only visible internally; this field should never contain anything other than 0 for a user-visible relation. For new relations being written during a DDL operation that requires a table rewrite, this contains the OID of the original relation; otherwise zero. That state is only visible internally; this field should never contain anything other than zero for a user-visible relation.relrowsecurityTrue if table has row level security enabled; see pg_policy catalog True if table has row-level security enabled; see pg_policy catalogreltoastrelidOID of the TOAST table associated with this table, 0 if none. The TOAST table stores large attributes “out of line” in a secondary table. OID of the TOAST table associated with this table, zero if none. The TOAST table stores large attributes “out of line” in a secondary table.reltuplesNumber of live rows in the table. This is only an estimate used by the planner. It is updated by VACUUM, ANALYZE, and a few DDL commands such as CREATE INDEX. Number of live rows in the table. This is only an estimate used by the planner. It is updated by VACUUM, ANALYZE, and a few DDL commands such as CREATE INDEX. If the table has never yet been vacuumed or analyzed, reltuples contains -1 indicating that the row count is unknown.reltypeThe OID of the data type that corresponds to this table's row type, if any (zero for indexes, which have no pg_type entry) The OID of the data type that corresponds to this table's row type, if any; zero for indexes, sequences, and toast tables, which have no pg_type entry
-
PostgreSQL 12 ← 11 结构变更
relhasoidsoid:隐式列 → 常规列5 处描述更新
oidRow identifier (hidden attribute; must be explicitly selected) Row identifierrelaclAccess privileges; see GRANT and REVOKE for details Access privileges; see Section 5.7 for detailsrelamIf this is an index, the access method used (B-tree, hash, etc.) If this is a table or an index, the access method used (heap, B-tree, hash, etc.)relhassubclassTrue if table has (or once had) any inheritance children True if table or index has (or once had) any inheritance childrenreltablespaceThe tablespace in which this relation is stored. If zero, the database's default tablespace is implied. (Not meaningful if the relation has no on-disk file.) The tablespace in which this relation is stored. If zero, the database's default tablespace is implied. Not meaningful if the relation has no on-disk file, except for partitioned tables, where this is the tablespace in which partitions will be created when one is not specified in the creation command.
-
PostgreSQL 11 ← 10 结构变更
relrewriterelhaspkey关系说明更新3 处描述更新
relispartitionTrue if table is a partition True if table or index is a partitionrelkindr = ordinary table, i = index, S = sequence, t = TOAST table, v = view, m = materialized view, c = composite type, f = foreign table, p = partitioned table r = ordinary table, i = index, S = sequence, t = TOAST table, v = view, m = materialized view, c = composite type, f = foreign table, p = partitioned table, I = partitioned indexreltuplesNumber of rows in the table. This is only an estimate used by the planner. It is updated by VACUUM, ANALYZE, and a few DDL commands such as CREATE INDEX. Number of live rows in the table. This is only an estimate used by the planner. It is updated by VACUUM, ANALYZE, and a few DDL commands such as CREATE INDEX.
-
PostgreSQL 10 ← 9.6 结构变更
relispartitionrelpartbound关系说明更新6 处描述更新
relfilenodeName of the on-disk file of this relation; zero means this is a "mapped" relation whose disk file name is determined by low-level state Name of the on-disk file of this relation; zero means this is a “mapped” relation whose disk file name is determined by low-level staterelfrozenxidAll transaction IDs before this one have been replaced with a permanent ("frozen") transaction ID in this table. This is used to track whether the table needs to be vacuumed in order to prevent transaction ID wraparound or to allow pg_clog to be shrunk. Zero (InvalidTransactionId) if the relation is not a table. All transaction IDs before this one have been replaced with a permanent (“frozen”) transaction ID in this table. This is used to track whether the table needs to be vacuumed in order to prevent transaction ID wraparound or to allow pg_xact to be shrunk. Zero (InvalidTransactionId) if the relation is not a table.relkindr = ordinary table, i = index, S = sequence, v = view, m = materialized view, c = composite type, t = TOAST table, f = foreign table r = ordinary table, i = index, S = sequence, t = TOAST table, v = view, m = materialized view, c = composite type, f = foreign table, p = partitioned tablereloptionsAccess-method-specific options, as "keyword=value" strings Access-method-specific options, as “keyword=value” stringsrelreplidentColumns used to form "replica identity" for rows: d = default (primary key, if any), n = nothing, f = all columns, i = index with indisreplident set (same as nothing if the index used has been dropped) Columns used to form “replica identity” for rows: d = default (primary key, if any), n = nothing, f = all columns, i = index with indisreplident set (same as nothing if the index used has been dropped)reltoastrelidOID of the TOAST table associated with this table, 0 if none. The TOAST table stores large attributes "out of line" in a secondary table. OID of the TOAST table associated with this table, 0 if none. The TOAST table stores large attributes “out of line” in a secondary table.
-
PostgreSQL 9.5 ← 9.4 结构变更
relrowsecurityrelforcerowsecurity1 处描述更新
relreplidentColumns used to form "replica identity" for rows: d = default (primary key, if any), n = nothing, f = all columns i = index with indisreplident set, or default Columns used to form "replica identity" for rows: d = default (primary key, if any), n = nothing, f = all columns, i = index with indisreplident set (same as nothing if the index used has been dropped)
-
PostgreSQL 9.4 ← 9.3 结构变更
relreplidentreltoastidxid -
PostgreSQL 9.3 ← 9.2 结构变更
relispopulatedrelminmxid关系说明更新2 处描述更新
oidRow identifier (hidden system attribute; explicitly select oid). Row identifier (hidden attribute; must be explicitly selected)relkindr = ordinary table, i = index, S = sequence, v = view, c = composite type, t = TOAST table, f = foreign table r = ordinary table, i = index, S = sequence, v = view, m = materialized view, c = composite type, t = TOAST table, f = foreign table
-
PostgreSQL 9.2 ← 9.1 结构变更
relallvisible -
PostgreSQL 9.1 ← 9.0 结构变更
relpersistencerelistemprelhasexclusion1 处描述更新
relkindr = ordinary table, i = index, S = sequence, v = view, c = composite type, t = TOAST table r = ordinary table, i = index, S = sequence, v = view, c = composite type, t = TOAST table, f = foreign table
字段矩阵
每个字段在 18 个收录版本里的存在情况;方格指向该版的字段表。「有变」指类型、可空、隐式或数组维数与上一版不同。
存在 有变 已移除 不存在
| 字段 | 9.0 | 9.1 | 9.2 | 9.3 | 9.4 | 9.5 | 9.6 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
oid |
存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 有变 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
relname |
存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
relnamespace |
存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
reltype |
存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
reloftype |
存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
relowner |
存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
relam |
存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
relfilenode |
存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
reltablespace |
存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
relpages |
存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
reltuples |
存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
reltoastrelid |
存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
reltoastidxid |
存在 | 存在 | 存在 | 存在 | 已移除 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 |
relhasindex |
存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
relisshared |
存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
relistemp |
存在 | 已移除 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 |
relkind |
存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
relnatts |
存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
relchecks |
存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
relhasoids |
存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 已移除 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 |
relhaspkey |
存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 已移除 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 |
relhasexclusion |
存在 | 已移除 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 |
relhasrules |
存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
relhastriggers |
存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
relhassubclass |
存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
relfrozenxid |
存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
relacl |
存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
reloptions |
存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
relpersistence |
不存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
relallvisible |
不存在 | 不存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
relispopulated |
不存在 | 不存在 | 不存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
relminmxid |
不存在 | 不存在 | 不存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
relreplident |
不存在 | 不存在 | 不存在 | 不存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
relrowsecurity |
不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
relforcerowsecurity |
不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
relispartition |
不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
relpartbound |
不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
relrewrite |
不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 | 存在 |
relallfrozen |
不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 不存在 | 存在 | 存在 | 存在 |
系统列
每张表都有的 6 个系统列
tableoidoid-6cmaxcid-5xmaxxid-4cmincid-3xminxid-2ctidtid-1
同类关系
| 关系 | 引入 | 字段 | 版本变动 | 最近变更 |
|---|---|---|---|---|
pg_aggregate |
9.0基线 | 22 | 113 次 | |
| 聚合函数 | 现存 | |||
pg_am |
9.0基线 | 4 | 124 次 | |
| 关系访问方法 | 现存 | |||
pg_amop |
9.0基线 | 9 | 122 次 | |
| 访问方法操作符 | 现存 | |||
pg_amproc |
9.0基线 | 6 | 121 次 | |
| 访问方法支持函数 | 现存 | |||
pg_attrdef |
9.0基线 | 4 | 122 次 | |
| 列默认值 | 现存 | |||
pg_attribute |
9.0基线 | 25 | 189 次 | |
| 表列(“属性”) | 现存 | |||
pg_auth_members |
9.0基线 | 7 | 161 次 | |
| 授权标识符成员关系 | 现存 | |||
pg_authid |
9.0基线 | 12 | 123 次 | |
| 授权标识符(角色) | 现存 | |||
pg_cast |
9.0基线 | 6 | 121 次 | |
| 转换(数据类型转换) | 现存 | |||
pg_class |
9.0基线 | 34 | 189 次 | |
| 表、索引、序列、视图 (“关系”) | 现存 | |||
pg_collation |
9.1 | 12 | 175 次 | |
| 排序规则(区域设置信息) | 现存 | |||
pg_constraint |
9.0基线 | 28 | 187 次 | |
| 检查约束、唯一约束、主键约束、外键约束 | 现存 | |||
pg_conversion |
9.0基线 | 8 | 121 次 | |
| 编码转换信息 | 现存 | |||
pg_database |
9.0基线 | 18 | 175 次 | |
| 本数据库集簇中的数据库 | 现存 | |||
pg_db_role_setting |
9.0基线 | 3 | — | |
| 每角色和每数据库的设置 | 现存 | |||
pg_default_acl |
9.0基线 | 5 | 121 次 | |
| 对象类型的默认权限 | 现存 | |||
pg_depend |
9.0基线 | 7 | — | |
| 数据库对象间的依赖 | 现存 | |||
pg_description |
9.0基线 | 4 | 9.51 次 | |
| 数据库对象上的描述或注释 | 现存 | |||
pg_enum |
9.0基线 | 4 | 122 次 | |
| 枚举标签和值定义 | 现存 | |||
pg_event_trigger |
9.3 | 7 | 121 次 | |
| 事件触发器 | 现存 | |||
pg_extension |
9.1 | 8 | 122 次 | |
| 已安装扩展 | 现存 | |||
pg_foreign_data_wrapper |
9.0基线 | 8 | 193 次 | |
| 外部数据包装器定义 | 现存 | |||
pg_foreign_server |
9.0基线 | 8 | 121 次 | |
| 外部服务器定义 | 现存 | |||
pg_foreign_table |
9.1 | 3 | — | |
| 外部表信息 | 现存 | |||
pg_index |
9.0基线 | 21 | 155 次 | |
| 索引信息 | 现存 | |||
pg_inherits |
9.0基线 | 4 | 141 次 | |
| 表继承层次 | 现存 | |||
pg_init_privs |
9.6 | 5 | — | |
| 对象初始权限 | 现存 | |||
pg_language |
9.0基线 | 9 | 121 次 | |
| 编写函数的语言 | 现存 | |||
pg_largeobject |
9.0基线 | 3 | 9.51 次 | |
| 大对象的数据页 | 现存 | |||
pg_largeobject_metadata |
9.0基线 | 3 | 121 次 | |
| 大对象的元数据 | 现存 | |||
pg_namespace |
9.0基线 | 4 | 121 次 | |
| 模式 | 现存 | |||
pg_opclass |
9.0基线 | 9 | 121 次 | |
| 访问方法操作符类 | 现存 | |||
pg_operator |
9.0基线 | 15 | 121 次 | |
| 操作符 | 现存 | |||
pg_opfamily |
9.0基线 | 5 | 121 次 | |
| 访问方法操作符族 | 现存 | |||
pg_parameter_acl |
15 | 3 | — | |
| 已授予权限的配置参数 | 现存 | |||
pg_partitioned_table |
10 | 8 | 111 次 | |
| 表的分区键的信息 | 现存 | |||
pg_pltemplate |
9.0基线 | 8 | 9.51 次 | |
| 过程语言的模板数据 | 于 13 移除 | |||
pg_policy |
9.5 | 8 | 122 次 | |
| 行安全策略 | 现存 | |||
pg_proc |
9.0基线 | 30 | 147 次 | |
| 函数和过程 | 现存 | |||
pg_propgraph_element |
19 | 14 | — | |
| 属性图元素(顶点和边) | 于 20 移除 | |||
pg_propgraph_element_label |
19 | 3 | — | |
| 属性图中元素与标签之间的链接 | 于 20 移除 | |||
pg_propgraph_label |
19 | 3 | — | |
| 属性图标签 | 于 20 移除 | |||
pg_propgraph_label_property |
19 | 4 | — | |
| 属性图中按标签区分的属性定义 | 于 20 移除 | |||
pg_propgraph_property |
19 | 6 | — | |
| 属性图属性 | 于 20 移除 | |||
pg_publication |
10 | 11 | 195 次 | |
| 用于逻辑复制的发布 | 现存 | |||
pg_publication_namespace |
15 | 3 | — | |
| 模式到发布映射 | 现存 | |||
pg_publication_rel |
10 | 6 | 193 次 | |
| 关系与发布的映射 | 现存 | |||
pg_range |
9.2 | 12 | 192 次 | |
| 范围类型的信息 | 现存 | |||
pg_replication_origin |
9.5 | 2 | — | |
| 已注册的复制源 | 现存 | |||
pg_rewrite |
9.0基线 | 8 | 123 次 | |
| 查询重写规则 | 现存 | |||
pg_seclabel |
9.1 | 5 | 9.51 次 | |
| 数据库对象上的安全标签 | 现存 | |||
pg_sequence |
10 | 8 | — | |
| 有关序列的信息 | 现存 | |||
pg_shdepend |
9.0基线 | 7 | — | |
| 共享对象上的依赖 | 现存 | |||
pg_shdescription |
9.0基线 | 3 | 9.51 次 | |
| 共享对象上的注释 | 现存 | |||
pg_shseclabel |
9.2 | 4 | 9.51 次 | |
| 共享数据库对象上的安全标签 | 现存 | |||
pg_statistic |
9.0基线 | 31 | 122 次 | |
| 规划器统计 | 现存 | |||
pg_statistic_ext |
10 | 9 | 174 次 | |
| 扩展的规划器统计信息(定义) | 现存 | |||
pg_statistic_ext_data |
12 | 6 | 152 次 | |
| 扩展的规划器统计信息(已构建的统计信息) | 现存 | |||
pg_subscription |
10 | 23 | 197 次 | |
| 逻辑复制订阅 | 现存 | |||
pg_subscription_rel |
10 | 4 | 131 次 | |
| 订阅的关系状态 | 现存 | |||
pg_tablespace |
9.0基线 | 5 | 122 次 | |
| 本数据库集簇内的表空间 | 现存 | |||
pg_transform |
9.5 | 5 | 121 次 | |
| 转换(将数据类型转换为过程语言需要的形式) | 现存 | |||
pg_trigger |
9.0基线 | 19 | 135 次 | |
| 触发器 | 现存 | |||
pg_ts_config |
9.0基线 | 5 | 121 次 | |
| 文本搜索配置 | 现存 | |||
pg_ts_config_map |
9.0基线 | 4 | — | |
| 文本搜索配置的词元映射 | 现存 | |||
pg_ts_dict |
9.0基线 | 6 | 121 次 | |
| 文本搜索字典 | 现存 | |||
pg_ts_parser |
9.0基线 | 8 | 121 次 | |
| 文本搜索分析器 | 现存 | |||
pg_ts_template |
9.0基线 | 5 | 121 次 | |
| 文本搜索模板 | 现存 | |||
pg_type |
9.0基线 | 32 | 144 次 | |
| 数据类型 | 现存 | |||
pg_user_mapping |
9.0基线 | 4 | 121 次 | |
| 将用户映射到外部服务器 | 现存 | |||