跳转到主要内容
← 目录图谱 / pg_stat_subscription_stats

STATISTICS VIEW · 统计视图

pg_stat_subscription_stats

The pg_stat_subscription_stats view will contain one row per subscription.

首次收录 PG 15最近收录 PG 19当前字段 12

已与 PostgreSQL 18.6 实例逐字段核对 · 原始实测记录 ↗

字段结构 PostgreSQL 18

pg_stat_subscription_stats
字段 / COLUMN类型 / TYPE说明 / DESCRIPTION
subid oid OID of the subscription
subname name Name of the subscription
apply_error_count bigint Number of times an error occurred while applying changes. Note that any conflict resulting in an apply error will be counted in both apply_error_count and the corresponding conflict count (e.g., confl_*).
sync_error_count bigint Number of times an error occurred during the initial table synchronization
confl_insert_exists bigint Number of times a row insertion violated a NOT DEFERRABLE unique constraint during the application of changes. See insert_exists for details about this conflict.
confl_update_origin_differs bigint Number of times an update was applied to a row that had been previously modified by another source during the application of changes. See update_origin_differs for details about this conflict.
confl_update_exists bigint Number of times that an updated row value violated a NOT DEFERRABLE unique constraint during the application of changes. See update_exists for details about this conflict.
confl_update_missing bigint Number of times the tuple to be updated was not found during the application of changes. See update_missing for details about this conflict.
confl_delete_origin_differs bigint Number of times a delete operation was applied to row that had been previously modified by another source during the application of changes. See delete_origin_differs for details about this conflict.
confl_delete_missing bigint Number of times the tuple to be deleted was not found during the application of changes. See delete_missing for details about this conflict.
confl_multiple_unique_conflicts bigint Number of times a row insertion or an updated row values violated multiple NOT DEFERRABLE unique constraints during the application of changes. See multiple_unique_conflicts for details about this conflict.
stats_reset timestamp with time zone Time at which these statistics were last reset

标记“隐式列”的字段不包含在 SELECT * 中;部分早期统计视图由同版本源码补全,额外来源会显示在字段说明中。

字段演化矩阵

悬停查看字段类型
存在新增 / 类型或属性变化移除
字段 / COLUMN9.09.19.29.39.49.59.610111213141516171819
subid
subname
apply_error_count
sync_error_count
stats_reset
confl_insert_exists
confl_update_origin_differs
confl_update_exists
confl_update_missing
confl_delete_origin_differs
confl_delete_missing
confl_multiple_unique_conflicts
sync_seq_error_count
sync_table_error_count
confl_update_deleted

9.0 是收录基线;基线中已存在的字段不标记为新增。矩阵按字段名称对齐,重命名显示为旧字段移除与新字段新增。

演化时间线

相邻大版本的变化

PostgreSQL 19 ← 18

+ sync_seq_error_count+ sync_table_error_count+ confl_update_deleted− sync_error_count

PostgreSQL 18 ← 17

+ confl_insert_exists+ confl_update_origin_differs+ confl_update_exists+ confl_update_missing+ confl_delete_origin_differs+ confl_delete_missing+ confl_multiple_unique_conflicts1 处字段说明更新

PostgreSQL 15 ← 14新增目录

+ subid+ subname+ apply_error_count+ sync_error_count+ stats_reset

比较任意两个版本

选择两个版本,查看字段的新增、移除与类型变化。交互比较需要 JavaScript;演化时间线可直接阅读。