↑↓ 选择 ↵ 打开 ⌫ 改范围 完整检索页

pgsql.cc 提供对 postgresql.org 官网内容的中文翻译,由 Pigsty 团队维护。

百科 / 系统目录 / 系统目录表

SYSTEM CATALOG系统目录表

pg_class

表、索引、序列、视图(“关系”)

系统目录表 引入 7.4(基线) 现存至 20 devel 14 次结构变更

关系 OID
1259
关系类型
r(普通表)
字段数
34
引入版本
7.4(收录基线)
版本状态
当前稳定版
结构变更
14 次

PostgreSQL 18 手册 官方文档 源码定义

版本轨迹

相对 PostgreSQL 17:新增 1 个字段。

目录 pg_class 描述了表以及其他具有列或在其他方面与表类似的对象。这包括索引(但请参见 pg_index)、序列(但请参见 pg_sequence)、视图、物化视图、复合类型和 TOAST 表;请参见 relkind。在下面,当我们指的是所有这些类型的对象时,我们称之为“关系(relations)”。并非所有 pg_class 的列对所有关系类型都有意义。

字段

PostgreSQL 18.7 的 34 个字段,按定义顺序排列。说明默认用本站手册的译文,没有译文的按英文原文显示。

字段 类型 说明
oid oidNOT NULL 行标识符
relname nameNOT NULL 表、索引、视图等的名字
relnamespace oidNOT NULL pg_namespace.oid 包含该关系的名字空间的 OID
reltype oidNOT NULL pg_type.oid 与此表的行类型对应的数据类型的 OID(如有);索引、序列和 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[] 访问权限,更多信息参见第 5.8 节
reloptions text[] 访问方法相关的选项,以“keyword=value”字符串形式
relpartbound pg_node_tree 如果表是一个分区(见 relispartition),则为分区边界的内部表示

演化历史

相邻两个大版本之间的差异,新的在前。版本号链到该版的字段表。

  1. PostgreSQL 19 ← 18 仅描述更新

    2 处描述更新
    • relacl Access privileges; see Section 5.8 for details Access privileges; see Section 5.9 for details
    • reltype 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 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
  2. PostgreSQL 18 ← 17 结构变更

    relallfrozen

  3. PostgreSQL 17 ← 16 仅描述更新

    2 处描述更新
    • relacl Access privileges; see Section 5.7 for details Access privileges; see Section 5.8 for details
    • relam 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) 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.
  4. PostgreSQL 15 ← 14 仅描述更新

    2 处描述更新
    • relhassubclass True if table or index has (or once had) any inheritance children True if table or index has (or once had) any inheritance children or partitions
    • relpersistence p = permanent table, u = unlogged table, t = temporary table p = permanent table/sequence, u = unlogged table/sequence, t = temporary table/sequence
  5. PostgreSQL 14 ← 13 仅描述更新

    8 处描述更新
    • relam If 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)
    • relforcerowsecurity True 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 catalog
    • reloftype For 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 relations
    • relrewrite For 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.
    • relrowsecurity True if table has row level security enabled; see pg_policy catalog True if table has row-level security enabled; see pg_policy catalog
    • reltoastrelid 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. 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.
    • reltuples 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. 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.
    • reltype The 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
  6. PostgreSQL 12 ← 11 结构变更

    relhasoids oid:隐式列 → 常规列

    5 处描述更新
    • oid Row identifier (hidden attribute; must be explicitly selected) Row identifier
    • relacl Access privileges; see GRANT and REVOKE for details Access privileges; see Section 5.7 for details
    • relam If 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.)
    • relhassubclass True if table has (or once had) any inheritance children True if table or index has (or once had) any inheritance children
    • reltablespace 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.) 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.
  7. PostgreSQL 11 ← 10 结构变更

    relrewrite relhaspkey 关系说明更新

    3 处描述更新
    • relispartition True if table is a partition True if table or index is a partition
    • relkind r = 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 index
    • reltuples Number 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.
  8. PostgreSQL 10 ← 9.6 结构变更

    relispartitionrelpartbound 关系说明更新

    6 处描述更新
    • relfilenode 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 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 state
    • relfrozenxid 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_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.
    • relkind r = 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 table
    • reloptions Access-method-specific options, as "keyword=value" strings Access-method-specific options, as “keyword=value” strings
    • relreplident 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) 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)
    • reltoastrelid 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. 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.
  9. PostgreSQL 9.5 ← 9.4 结构变更

    relrowsecurityrelforcerowsecurity

    1 处描述更新
    • relreplident Columns 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)
  10. PostgreSQL 9.4 ← 9.3 结构变更

    relreplident reltoastidxid

  11. PostgreSQL 9.3 ← 9.2 结构变更

    relispopulatedrelminmxid 关系说明更新

    2 处描述更新
    • oid Row identifier (hidden system attribute; explicitly select oid). Row identifier (hidden attribute; must be explicitly selected)
    • relkind r = 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
  12. PostgreSQL 9.2 ← 9.1 结构变更

    relallvisible

  13. PostgreSQL 9.1 ← 9.0 结构变更

    relpersistence relistemprelhasexclusion

    1 处描述更新
    • relkind r = 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
  14. PostgreSQL 9.0 ← 8.4 结构变更

    oidreloftyperelhasexclusion

  15. PostgreSQL 8.4 ← 8.3 结构变更

    relistemprelhastriggers reltriggersrelukeysrelfkeysrelrefs

  16. PostgreSQL 8.2 ← 8.1 结构变更

    relfrozenxidreloptions

  17. PostgreSQL 8.1 ← 8.0 结构变更

    relowner:int4 → oid

  18. PostgreSQL 8.0 ← 7.4 结构变更

    reltablespace

字段矩阵

每个字段在 24 个收录版本里的存在情况;方格指向该版的字段表。「有变」指类型、可空、隐式或数组维数与上一版不同。

存在 有变 已移除 不存在

字段 7.48.08.18.28.38.49.09.19.29.39.49.59.61011121314151617181920
relname 存在 存在 存在 存在 存在 存在 有变 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
relnamespace 存在 存在 存在 存在 存在 存在 有变 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
reltype 存在 存在 存在 存在 存在 存在 有变 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
relowner 存在 存在 有变 存在 存在 存在 有变 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
relam 存在 存在 存在 存在 存在 存在 有变 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
relfilenode 存在 存在 存在 存在 存在 存在 有变 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
relpages 存在 存在 存在 存在 存在 存在 有变 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 有变
reltuples 存在 存在 存在 存在 存在 存在 有变 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 有变
reltoastrelid 存在 存在 存在 存在 存在 存在 有变 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
reltoastidxid 存在 存在 存在 存在 存在 存在 有变 存在 存在 存在 已移除 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在
relhasindex 存在 存在 存在 存在 存在 存在 有变 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 有变
relisshared 存在 存在 存在 存在 存在 存在 有变 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 有变
relkind 存在 存在 存在 存在 存在 存在 有变 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 有变
relnatts 存在 存在 存在 存在 存在 存在 有变 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 有变
relchecks 存在 存在 存在 存在 存在 存在 有变 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 有变
reltriggers 存在 存在 存在 存在 存在 已移除 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在
relukeys 存在 存在 存在 存在 存在 已移除 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在
relfkeys 存在 存在 存在 存在 存在 已移除 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在
relrefs 存在 存在 存在 存在 存在 已移除 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在
relhasoids 存在 存在 存在 存在 存在 存在 有变 存在 存在 存在 存在 存在 存在 存在 存在 已移除 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在
relhaspkey 存在 存在 存在 存在 存在 存在 有变 存在 存在 存在 存在 存在 存在 存在 已移除 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在
relhasrules 存在 存在 存在 存在 存在 存在 有变 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 有变
relhassubclass 存在 存在 存在 存在 存在 存在 有变 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 有变
relacl 存在 存在 存在 存在 存在 存在 有变 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
reltablespace 不存在 存在 存在 存在 存在 存在 有变 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
relfrozenxid 不存在 不存在 不存在 存在 存在 存在 有变 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
reloptions 不存在 不存在 不存在 存在 存在 存在 有变 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
relistemp 不存在 不存在 不存在 不存在 不存在 存在 有变 已移除 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在
relhastriggers 不存在 不存在 不存在 不存在 不存在 存在 有变 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 有变
oid 不存在 不存在 不存在 不存在 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 有变 存在 存在 存在 存在 存在 存在 存在 存在
reloftype 不存在 不存在 不存在 不存在 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
relhasexclusion 不存在 不存在 不存在 不存在 不存在 不存在 存在 已移除 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在
relpersistence 不存在 不存在 不存在 不存在 不存在 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 有变
relallvisible 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 有变
relispopulated 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 有变
relminmxid 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
relreplident 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 有变
relrowsecurity 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 有变
relforcerowsecurity 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 有变
relispartition 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 有变
relpartbound 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
relrewrite 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
relallfrozen 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 存在 存在 有变

系统列

每张表都有的 6 个系统列
  • tableoidoid-6
  • cmaxcid-5
  • xmaxxid-4
  • cmincid-3
  • xminxid-2
  • ctidtid-1

同类关系

关系 引入 字段 版本变动 最近变更
SYSTEM CATALOG 系统目录表 67 个 ↗
pg_aggregate 7.4基线 22 114 次
聚合函数 现存
pg_am 7.4基线 4 129 次
关系访问方法 现存
pg_amop 7.4基线 9 126 次
访问方法操作符 现存
pg_amproc 7.4基线 6 124 次
访问方法支持函数 现存
pg_attrdef 7.4基线 4 123 次
列默认值 现存
pg_attribute 7.4基线 25 1812 次
表列(“属性”) 现存
pg_auth_members 8.1 7 161 次
授权标识符成员关系 现存
pg_authid 8.1 12 124 次
授权标识符(角色) 现存
pg_autovacuum 8.1 10 8.21 次
目录pg_autovacuum存放自动清理守护进程的可选逐关系配置参数。如果某个特定关系在这里有条目,则给定的参数将用于对该表做自动清理。如果没有条目,将使用系统范围的默认值。关于自动清理守护进程的更多信息,见第 23.1.4 节。 于 8.4 移除
pg_cast 7.4基线 6 123 次
转换(数据类型转换) 现存
pg_class 7.4基线 34 1814 次
表、索引、序列、视图(“关系”) 现存
pg_collation 9.1 12 175 次
排序规则(区域设置信息) 现存
pg_constraint 7.4基线 28 1810 次
检查约束、唯一约束、主键约束、外键约束 现存
pg_conversion 7.4基线 8 123 次
编码转换信息 现存
pg_database 7.4基线 18 1710 次
本数据库集簇中的数据库 现存
pg_db_role_setting 9.0 3 —
每角色和每数据库的设置 现存
pg_default_acl 9.0 5 121 次
对象类型的默认权限 现存
pg_depend 7.4基线 7 —
数据库对象间的依赖 现存
pg_description 7.4基线 4 9.51 次
数据库对象上的描述或注释 现存
pg_enum 8.3 4 123 次
枚举标签和值定义 现存
pg_event_trigger 9.3 7 121 次
事件触发器 现存
pg_extension 9.1 8 122 次
已安装扩展 现存
pg_foreign_data_wrapper 8.4 8 194 次
外部数据包装器定义 现存
pg_foreign_server 8.4 8 122 次
外部服务器定义 现存
pg_foreign_table 9.1 3 —
外部表的补充信息 现存
pg_index 7.4基线 21 159 次
索引的补充信息 现存
pg_inherits 7.4基线 4 141 次
表继承层次 现存
pg_init_privs 9.6 5 —
对象初始权限 现存
pg_language 7.4基线 9 123 次
编写函数的语言 现存
pg_largeobject 7.4基线 3 9.51 次
大对象的数据页 现存
pg_largeobject_metadata 9.0 3 121 次
大对象的元数据 现存
pg_listener 7.4基线 3 —
目录 pg_listener 支持LISTEN和NOTIFY命令。监听者为自己正在监听的每个通知名称在 pg_listener 中创建一个条目。通知者会扫描 pg_listener 并更新每个匹配的条目,以表明发生了一个通知。通知者还会(使用表中记录的 PID)发送信号,把监听者从睡眠中唤醒。 于 9.0 移除
pg_namespace 7.4基线 4 123 次
模式 现存
pg_opclass 7.4基线 9 124 次
访问方法操作符类 现存
pg_operator 7.4基线 15 124 次
操作符 现存
pg_opfamily 8.3 5 122 次
访问方法操作符族 现存
pg_parameter_acl 15 3 —
已授予权限的配置参数 现存
pg_partitioned_table 10 8 111 次
表的分区键的信息 现存
pg_pltemplate 8.1 8 9.53 次
过程语言的模板数据 于 13 移除
pg_policy 9.5 8 122 次
行安全性策略 现存
pg_proc 7.4基线 30 1412 次
函数和过程 现存
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 7.4基线 8 125 次
查询重写规则 现存
pg_seclabel 9.1 5 9.51 次
数据库对象上的安全标签 现存
pg_sequence 10 8 —
有关序列的信息 现存
pg_shdepend 8.1 7 8.41 次
共享对象上的依赖 现存
pg_shdescription 8.2 3 9.51 次
共享对象上的注释 现存
pg_shseclabel 9.2 4 9.51 次
共享数据库对象上的安全标签 现存
pg_statistic 7.4基线 31 123 次
规划器统计信息 现存
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 8.0 5 124 次
本数据库集簇内的表空间 现存
pg_transform 9.5 5 121 次
转换(将数据类型转换为过程语言需要的形式) 现存
pg_trigger 7.4基线 19 137 次
触发器 现存
pg_ts_config 8.3 5 122 次
文本检索配置 现存
pg_ts_config_map 8.3 4 —
文本检索配置的词元映射 现存
pg_ts_dict 8.3 6 122 次
文本检索词典 现存
pg_ts_parser 8.3 8 122 次
文本检索解析器 现存
pg_ts_template 8.3 5 122 次
文本检索模板 现存
pg_type 7.4基线 32 149 次
数据类型 现存
pg_user_mapping 8.4 4 122 次
用户到外部服务器的映射 现存