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

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

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

SYSTEM CATALOG系统目录表

pg_statistic

规划器统计信息

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

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

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 在设计上尽量不对所存储的统计信息种类作出假定。只有极为通用的统计信息(例如空值情况)才在 pg_statistic 中有专用的列。其余统计信息都存储在“槽位”中。每个槽位都是一组相关的列,其内容由其中一列的代码编号来标识。更多信息见 src/include/catalog/pg_statistic.h。

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

字段

PostgreSQL 18.7 的 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.
  7. PostgreSQL 9.0 ← 8.4 结构变更

    stainheritstakind1stakind2stakind3stakind4staop1staop2staop3staop4stanumbers1stanumbers2stanumbers3stanumbers4stavalues1stavalues2stavalues3stavalues4 stakindNstaopNstanumbersNstavaluesN

字段矩阵

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

存在 有变 已移除 不存在

字段 7.48.08.18.28.38.49.09.19.29.39.49.59.61011121314151617181920
starelid 存在 存在 存在 存在 存在 存在 有变 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
staattnum 存在 存在 存在 存在 存在 存在 有变 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 有变
stanullfrac 存在 存在 存在 存在 存在 存在 有变 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 有变
stawidth 存在 存在 存在 存在 存在 存在 有变 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 有变
stadistinct 存在 存在 存在 存在 存在 存在 有变 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 有变
stakindN 存在 存在 存在 存在 存在 存在 已移除 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在
staopN 存在 存在 存在 存在 存在 存在 已移除 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在
stanumbersN 存在 存在 存在 存在 存在 存在 已移除 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在
stavaluesN 存在 存在 存在 存在 存在 存在 已移除 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在
stainherit 不存在 不存在 不存在 不存在 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 有变
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 系统目录表 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 次
用户到外部服务器的映射 现存