选择 打开 改范围 完整检索页

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

文档 / 系统目录 / 系统目录表

SYSTEM CATALOG系统目录表

pg_statistic

规划器统计

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

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

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

版本轨迹

相对 PostgreSQL 17 无变化。

目录pg_statistic存储有关数据库内容的统计数据。 其中的项由ANALYZE创建,查询规划器会使用这些数据来进行查询规划。 注意所有的统计数据天然就是近似的,即使它刚刚被更新。

通常,每个已分析的表列都有一个条目,其中stainherit = false。 如果表具有继承子项或分区,则还会创建第二个条目,其中stainherit = true。 此行表示继承树上列的统计信息,即您可以通过SELECT column FROM table*看到的数据的统计信息, 而stainherit = false行表示SELECT column FROM ONLY table的结果。

pg_statistic也存储关于索引表达式值的统计数据,就好像它们是真正的数据列,但在这种情况中starelid指索引。对一个普通非表达式索引列不会创建项,因为它将是底层表列的项的冗余。当前,索引表达式的项都具有stainherit = false。

因为不同类型的统计信息适用于不同类型的数据, pg_statistic 被设计成不太在意自己存储的是什么类型的统计。 只有极为常用的统计信息(比如NULL的含量)才在pg_statistic里给予专用的字段。 其它所有东西都存储在“槽位”中,而槽位是一组相关的列, 它们的内容用槽位中的一个列里的代码表示。 更详细的信息请参阅 src/include/catalog/pg_statistic.h。

pg_statistic不应公开可读,因为即使是表内容的统计信息也可能被认为是敏感的(例如,一个工资列的最大值和最小值就可能非常引人关注)。pg_stats是建立在pg_statistic之上的公开可读视图,它只会显示当前用户可读取的表的信息。

字段

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

字段 类型 说明
starelid oidNOT NULL pg_class.oid 被描述列所属的表或索引
staattnum smallintNOT NULL pg_attribute.attnum 被描述列的编号
stainherit booleanNOT NULL 如果为真,则统计信息包括子表中的值,而不仅仅是指定关系中的值
stanullfrac realNOT NULL 列的项为空的比例
stawidth integerNOT NULL 非空项的平均存储宽度,以字节计
stadistinct realNOT NULL 列中非空唯一值的数目。一个大于零的值是唯一值的真正数目。 一个小于零的值是表中行数的乘数的负值;例如,对于一个 80% 的值为非空且每个非空值平均出现两次的列,可以表示为stadistinct = -0.4。一个0值表示唯一值的数目未知。
stakind1 smallintNOT NULL 一个代码,它表示存储在该pg_statistic行中第N个“槽位”的统计类型。 Expanded documentation slot placeholder using the version-specific catalog header.
stakind2 smallintNOT NULL 一个代码,它表示存储在该pg_statistic行中第N个“槽位”的统计类型。 Expanded documentation slot placeholder using the version-specific catalog header.
stakind3 smallintNOT NULL 一个代码,它表示存储在该pg_statistic行中第N个“槽位”的统计类型。 Expanded documentation slot placeholder using the version-specific catalog header.
stakind4 smallintNOT NULL 一个代码,它表示存储在该pg_statistic行中第N个“槽位”的统计类型。 Expanded documentation slot placeholder using the version-specific catalog header.
stakind5 smallintNOT NULL 一个代码,它表示存储在该pg_statistic行中第N个“槽位”的统计类型。 Expanded documentation slot placeholder using the version-specific catalog header.
staop1 oidNOT NULL pg_operator.oid 一个用于生成这些存储在第N个“槽位”的统计信息的操作符。 例如,直方图槽位会使用<操作符,该操作符定义了这些数据的排序顺序。 如果统计类型不需要操作符则为零。 Expanded documentation slot placeholder using the version-specific catalog header.
staop2 oidNOT NULL pg_operator.oid 一个用于生成这些存储在第N个“槽位”的统计信息的操作符。 例如,直方图槽位会使用<操作符,该操作符定义了这些数据的排序顺序。 如果统计类型不需要操作符则为零。 Expanded documentation slot placeholder using the version-specific catalog header.
staop3 oidNOT NULL pg_operator.oid 一个用于生成这些存储在第N个“槽位”的统计信息的操作符。 例如,直方图槽位会使用<操作符,该操作符定义了这些数据的排序顺序。 如果统计类型不需要操作符则为零。 Expanded documentation slot placeholder using the version-specific catalog header.
staop4 oidNOT NULL pg_operator.oid 一个用于生成这些存储在第N个“槽位”的统计信息的操作符。 例如,直方图槽位会使用<操作符,该操作符定义了这些数据的排序顺序。 如果统计类型不需要操作符则为零。 Expanded documentation slot placeholder using the version-specific catalog header.
staop5 oidNOT NULL pg_operator.oid 一个用于生成这些存储在第N个“槽位”的统计信息的操作符。 例如,直方图槽位会使用<操作符,该操作符定义了这些数据的排序顺序。 如果统计类型不需要操作符则为零。 Expanded documentation slot placeholder using the version-specific catalog header.
stacoll1 oidNOT NULL pg_collation.oid 用于导出存储在第N个“槽位”中的统计信息的排序规则。 例如,可应用排序规则列的直方图槽会显示定义数据排序顺序的排序规则。对于不可应用排序规则的数据,则为零。 Expanded documentation slot placeholder using the version-specific catalog header.
stacoll2 oidNOT NULL pg_collation.oid 用于导出存储在第N个“槽位”中的统计信息的排序规则。 例如,可应用排序规则列的直方图槽会显示定义数据排序顺序的排序规则。对于不可应用排序规则的数据,则为零。 Expanded documentation slot placeholder using the version-specific catalog header.
stacoll3 oidNOT NULL pg_collation.oid 用于导出存储在第N个“槽位”中的统计信息的排序规则。 例如,可应用排序规则列的直方图槽会显示定义数据排序顺序的排序规则。对于不可应用排序规则的数据,则为零。 Expanded documentation slot placeholder using the version-specific catalog header.
stacoll4 oidNOT NULL pg_collation.oid 用于导出存储在第N个“槽位”中的统计信息的排序规则。 例如,可应用排序规则列的直方图槽会显示定义数据排序顺序的排序规则。对于不可应用排序规则的数据,则为零。 Expanded documentation slot placeholder using the version-specific catalog header.
stacoll5 oidNOT NULL pg_collation.oid 用于导出存储在第N个“槽位”中的统计信息的排序规则。 例如,可应用排序规则列的直方图槽会显示定义数据排序顺序的排序规则。对于不可应用排序规则的数据,则为零。 Expanded documentation slot placeholder using the version-specific catalog header.
stanumbers1 real[] 第N个“槽位”的类型的数值类型统计, 如果该槽位不涉及数值类型则为NULL Expanded documentation slot placeholder using the version-specific catalog header.
stanumbers2 real[] 第N个“槽位”的类型的数值类型统计, 如果该槽位不涉及数值类型则为NULL Expanded documentation slot placeholder using the version-specific catalog header.
stanumbers3 real[] 第N个“槽位”的类型的数值类型统计, 如果该槽位不涉及数值类型则为NULL Expanded documentation slot placeholder using the version-specific catalog header.
stanumbers4 real[] 第N个“槽位”的类型的数值类型统计, 如果该槽位不涉及数值类型则为NULL Expanded documentation slot placeholder using the version-specific catalog header.
stanumbers5 real[] 第N个“槽位”的类型的数值类型统计, 如果该槽位不涉及数值类型则为NULL Expanded documentation slot placeholder using the version-specific catalog header.
stavalues1 anyarray 第N个“槽位”的类型的列值,如果该槽位类型不存储任何数据值则为 NULL。 每个数组的元素值实际上都是指定列的数据类型或者是一个相关类型(如数组元素类型), 因此,除了把这些列的类型定义成anyarray之外别无他法。 Expanded documentation slot placeholder using the version-specific catalog header.
stavalues2 anyarray 第N个“槽位”的类型的列值,如果该槽位类型不存储任何数据值则为 NULL。 每个数组的元素值实际上都是指定列的数据类型或者是一个相关类型(如数组元素类型), 因此,除了把这些列的类型定义成anyarray之外别无他法。 Expanded documentation slot placeholder using the version-specific catalog header.
stavalues3 anyarray 第N个“槽位”的类型的列值,如果该槽位类型不存储任何数据值则为 NULL。 每个数组的元素值实际上都是指定列的数据类型或者是一个相关类型(如数组元素类型), 因此,除了把这些列的类型定义成anyarray之外别无他法。 Expanded documentation slot placeholder using the version-specific catalog header.
stavalues4 anyarray 第N个“槽位”的类型的列值,如果该槽位类型不存储任何数据值则为 NULL。 每个数组的元素值实际上都是指定列的数据类型或者是一个相关类型(如数组元素类型), 因此,除了把这些列的类型定义成anyarray之外别无他法。 Expanded documentation slot placeholder using the version-specific catalog header.
stavalues5 anyarray 第N个“槽位”的类型的列值,如果该槽位类型不存储任何数据值则为 NULL。 每个数组的元素值实际上都是指定列的数据类型或者是一个相关类型(如数组元素类型), 因此,除了把这些列的类型定义成anyarray之外别无他法。 Expanded documentation slot placeholder using the version-specific catalog header.

演化历史

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

  1. PostgreSQL 15 ← 14 仅描述更新

    关系说明更新

    1 处描述更新
    • stainherit If true, the stats include inheritance child columns, not just the values in the specified relation If true, the stats include values from child tables, not just the values in the specified relation
  2. PostgreSQL 14 ← 13 仅描述更新

    5 处描述更新
    • staop1 An operator used to derive the statistics stored in the Nth “slot”. For example, a histogram slot would show the < operator that defines the sort order of the data. An operator used to derive the statistics stored in the Nth “slot”. For example, a histogram slot would show the < operator that defines the sort order of the data. Zero if the statistics kind does not require an operator.
    • staop2 An operator used to derive the statistics stored in the Nth “slot”. For example, a histogram slot would show the < operator that defines the sort order of the data. An operator used to derive the statistics stored in the Nth “slot”. For example, a histogram slot would show the < operator that defines the sort order of the data. Zero if the statistics kind does not require an operator.
    • staop3 An operator used to derive the statistics stored in the Nth “slot”. For example, a histogram slot would show the < operator that defines the sort order of the data. An operator used to derive the statistics stored in the Nth “slot”. For example, a histogram slot would show the < operator that defines the sort order of the data. Zero if the statistics kind does not require an operator.
    • staop4 An operator used to derive the statistics stored in the Nth “slot”. For example, a histogram slot would show the < operator that defines the sort order of the data. An operator used to derive the statistics stored in the Nth “slot”. For example, a histogram slot would show the < operator that defines the sort order of the data. Zero if the statistics kind does not require an operator.
    • staop5 An operator used to derive the statistics stored in the Nth “slot”. For example, a histogram slot would show the < operator that defines the sort order of the data. An operator used to derive the statistics stored in the Nth “slot”. For example, a histogram slot would show the < operator that defines the sort order of the data. Zero if the statistics kind does not require an operator.
  3. PostgreSQL 12 ← 11 结构变更

    stacoll1stacoll2stacoll3stacoll4stacoll5

  4. PostgreSQL 10 ← 9.6 仅描述更新

    关系说明更新

    20 处描述更新
    • stakind1 A code number indicating the kind of statistics stored in the Nth "slot" of the pg_statistic row. A code number indicating the kind of statistics stored in the Nth “slot” of the pg_statistic row.
    • stakind2 A code number indicating the kind of statistics stored in the Nth "slot" of the pg_statistic row. A code number indicating the kind of statistics stored in the Nth “slot” of the pg_statistic row.
    • stakind3 A code number indicating the kind of statistics stored in the Nth "slot" of the pg_statistic row. A code number indicating the kind of statistics stored in the Nth “slot” of the pg_statistic row.
    • stakind4 A code number indicating the kind of statistics stored in the Nth "slot" of the pg_statistic row. A code number indicating the kind of statistics stored in the Nth “slot” of the pg_statistic row.
    • stakind5 A code number indicating the kind of statistics stored in the Nth "slot" of the pg_statistic row. A code number indicating the kind of statistics stored in the Nth “slot” of the pg_statistic row.
    • stanumbers1 Numerical statistics of the appropriate kind for the Nth "slot", or null if the slot kind does not involve numerical values Numerical statistics of the appropriate kind for the Nth “slot”, or null if the slot kind does not involve numerical values
    • stanumbers2 Numerical statistics of the appropriate kind for the Nth "slot", or null if the slot kind does not involve numerical values Numerical statistics of the appropriate kind for the Nth “slot”, or null if the slot kind does not involve numerical values
    • stanumbers3 Numerical statistics of the appropriate kind for the Nth "slot", or null if the slot kind does not involve numerical values Numerical statistics of the appropriate kind for the Nth “slot”, or null if the slot kind does not involve numerical values
    • stanumbers4 Numerical statistics of the appropriate kind for the Nth "slot", or null if the slot kind does not involve numerical values Numerical statistics of the appropriate kind for the Nth “slot”, or null if the slot kind does not involve numerical values
    • stanumbers5 Numerical statistics of the appropriate kind for the Nth "slot", or null if the slot kind does not involve numerical values Numerical statistics of the appropriate kind for the Nth “slot”, or null if the slot kind does not involve numerical values
    • staop1 An operator used to derive the statistics stored in the Nth "slot". For example, a histogram slot would show the < operator that defines the sort order of the data. An operator used to derive the statistics stored in the Nth “slot”. For example, a histogram slot would show the < operator that defines the sort order of the data.
    • staop2 An operator used to derive the statistics stored in the Nth "slot". For example, a histogram slot would show the < operator that defines the sort order of the data. An operator used to derive the statistics stored in the Nth “slot”. For example, a histogram slot would show the < operator that defines the sort order of the data.
    • staop3 An operator used to derive the statistics stored in the Nth "slot". For example, a histogram slot would show the < operator that defines the sort order of the data. An operator used to derive the statistics stored in the Nth “slot”. For example, a histogram slot would show the < operator that defines the sort order of the data.
    • staop4 An operator used to derive the statistics stored in the Nth "slot". For example, a histogram slot would show the < operator that defines the sort order of the data. An operator used to derive the statistics stored in the Nth “slot”. For example, a histogram slot would show the < operator that defines the sort order of the data.
    • staop5 An operator used to derive the statistics stored in the Nth "slot". For example, a histogram slot would show the < operator that defines the sort order of the data. An operator used to derive the statistics stored in the Nth “slot”. For example, a histogram slot would show the < operator that defines the sort order of the data.
    • stavalues1 Column data values of the appropriate kind for the Nth "slot", or null if the slot kind does not store any data values. Each array's element values are actually of the specific column's data type, or a related type such as an array's element type, so there is no way to define these columns' type more specifically than anyarray. Column data values of the appropriate kind for the Nth “slot”, or null if the slot kind does not store any data values. Each array's element values are actually of the specific column's data type, or a related type such as an array's element type, so there is no way to define these columns' type more specifically than anyarray.
    • stavalues2 Column data values of the appropriate kind for the Nth "slot", or null if the slot kind does not store any data values. Each array's element values are actually of the specific column's data type, or a related type such as an array's element type, so there is no way to define these columns' type more specifically than anyarray. Column data values of the appropriate kind for the Nth “slot”, or null if the slot kind does not store any data values. Each array's element values are actually of the specific column's data type, or a related type such as an array's element type, so there is no way to define these columns' type more specifically than anyarray.
    • stavalues3 Column data values of the appropriate kind for the Nth "slot", or null if the slot kind does not store any data values. Each array's element values are actually of the specific column's data type, or a related type such as an array's element type, so there is no way to define these columns' type more specifically than anyarray. Column data values of the appropriate kind for the Nth “slot”, or null if the slot kind does not store any data values. Each array's element values are actually of the specific column's data type, or a related type such as an array's element type, so there is no way to define these columns' type more specifically than anyarray.
    • stavalues4 Column data values of the appropriate kind for the Nth "slot", or null if the slot kind does not store any data values. Each array's element values are actually of the specific column's data type, or a related type such as an array's element type, so there is no way to define these columns' type more specifically than anyarray. Column data values of the appropriate kind for the Nth “slot”, or null if the slot kind does not store any data values. Each array's element values are actually of the specific column's data type, or a related type such as an array's element type, so there is no way to define these columns' type more specifically than anyarray.
    • stavalues5 Column data values of the appropriate kind for the Nth "slot", or null if the slot kind does not store any data values. Each array's element values are actually of the specific column's data type, or a related type such as an array's element type, so there is no way to define these columns' type more specifically than anyarray. Column data values of the appropriate kind for the Nth “slot”, or null if the slot kind does not store any data values. Each array's element values are actually of the specific column's data type, or a related type such as an array's element type, so there is no way to define these columns' type more specifically than anyarray.
  5. PostgreSQL 9.2 ← 9.1 结构变更

    stakind5staop5stanumbers5stavalues5

    4 处描述更新
    • stavalues1 Column data values of the appropriate kind for the Nth "slot", or null if the slot kind does not store any data values. Each array's element values are actually of the specific column's data type, so there is no way to define these columns' type more specifically than anyarray. Column data values of the appropriate kind for the Nth "slot", or null if the slot kind does not store any data values. Each array's element values are actually of the specific column's data type, or a related type such as an array's element type, so there is no way to define these columns' type more specifically than anyarray.
    • stavalues2 Column data values of the appropriate kind for the Nth "slot", or null if the slot kind does not store any data values. Each array's element values are actually of the specific column's data type, so there is no way to define these columns' type more specifically than anyarray. Column data values of the appropriate kind for the Nth "slot", or null if the slot kind does not store any data values. Each array's element values are actually of the specific column's data type, or a related type such as an array's element type, so there is no way to define these columns' type more specifically than anyarray.
    • stavalues3 Column data values of the appropriate kind for the Nth "slot", or null if the slot kind does not store any data values. Each array's element values are actually of the specific column's data type, so there is no way to define these columns' type more specifically than anyarray. Column data values of the appropriate kind for the Nth "slot", or null if the slot kind does not store any data values. Each array's element values are actually of the specific column's data type, or a related type such as an array's element type, so there is no way to define these columns' type more specifically than anyarray.
    • stavalues4 Column data values of the appropriate kind for the Nth "slot", or null if the slot kind does not store any data values. Each array's element values are actually of the specific column's data type, so there is no way to define these columns' type more specifically than anyarray. Column data values of the appropriate kind for the Nth "slot", or null if the slot kind does not store any data values. Each array's element values are actually of the specific column's data type, or a related type such as an array's element type, so there is no way to define these columns' type more specifically than anyarray.
  6. PostgreSQL 9.1 ← 9.0 仅描述更新

    1 处描述更新
    • stadistinct The number of distinct nonnull data values in the column. A value greater than zero is the actual number of distinct values. A value less than zero is the negative of a multiplier for the number of rows in the table; for example, a column in which values appear about twice on the average could be represented by stadistinct = -0.5. A zero value means the number of distinct values is unknown. The number of distinct nonnull data values in the column. A value greater than zero is the actual number of distinct values. A value less than zero is the negative of a multiplier for the number of rows in the table; for example, a column in which about 80% of the values are nonnull and each nonnull value appears about twice on average could be represented by stadistinct = -0.4. A zero value means the number of distinct values is unknown.

字段矩阵

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

存在 有变 已移除 不存在

字段 9.09.19.29.39.49.59.61011121314151617181920
starelid 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
staattnum 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
stainherit 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
stanullfrac 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
stawidth 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
stadistinct 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
stakind1 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
stakind2 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
stakind3 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
stakind4 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
staop1 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
staop2 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
staop3 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
staop4 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
stanumbers1 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
stanumbers2 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
stanumbers3 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
stanumbers4 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
stavalues1 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
stavalues2 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
stavalues3 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
stavalues4 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
stakind5 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
staop5 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
stanumbers5 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
stavalues5 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
stacoll1 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
stacoll2 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
stacoll3 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
stacoll4 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
stacoll5 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在

系统列

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

同类关系

关系 引入 字段 版本变动 最近变更
SYSTEM CATALOG 系统目录表 70 个
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 次
将用户映射到外部服务器 现存