pg_stat_subscription_stats
pg_stat_subscription_stats视图将包含每个订阅的一行。
英文手册覆盖始于 PostgreSQL 7.4. 来源历史与运行验证各自保留独立版本边界。
当前阅读 PG 18·选择有来源记录的版本
- kind
- statistics
- lang
- en
- measured attributes
- true
- metadata release
- 18.6
- runtime verified
- false
- source
- english-manual
版本定义 PG 18
pg_stat_subscription_stats视图将包含每个订阅的一行。
目录列
| 列 | 类型 | 可空性 | 描述 |
|---|---|---|---|
| subid | oid | 可空 | 订阅的OID |
| subname | name | 可空 | 订阅的名称 |
| apply_error_count | bigint | 可空 | 应用更改时发生错误的次数。请注意,导致应用错误的任何冲突都会同时计入 apply_error_count 和对应的冲突计数(例如 confl_*)。 |
| sync_error_count | bigint | 可空 | 在初始表同步期间发生错误的次数 |
| confl_insert_exists | bigint | 可空 | 在应用更改期间,行插入违反 NOT DEFERRABLE 唯一约束的次数。有关该冲突的详细信息,请参阅insert_exists。 |
| confl_update_origin_differs | bigint | 可空 | 在应用更改期间,更新被应用到先前已被另一个源修改过的行上的次数。有关该冲突的详细信息,请参阅update_origin_differs。 |
| confl_update_exists | bigint | 可空 | 在应用更改期间,更新后的行值违反 NOT DEFERRABLE 唯一约束的次数。有关该冲突的详细信息,请参阅update_exists。 |
| confl_update_missing | bigint | 可空 | 在应用更改期间,待更新的元组未找到的次数。有关该冲突的详细信息,请参阅update_missing。 |
| confl_delete_origin_differs | bigint | 可空 | 在应用更改期间,删除操作被应用到先前已被另一个源修改过的行上的次数。有关该冲突的详细信息,请参阅delete_origin_differs。 |
| confl_delete_missing | bigint | 可空 | 在应用更改期间,待删除的元组未找到的次数。有关该冲突的详细信息,请参阅delete_missing。 |
| confl_multiple_unique_conflicts | bigint | 可空 | 在应用更改期间,行插入或更新后的行值违反多个 NOT DEFERRABLE 唯一约束的次数。有关该冲突的详细信息,请参阅multiple_unique_conflicts。 |
| stats_reset | timestamp with time zone | 可空 | 这些统计信息上次被重置的时间 |
比较版本
完整来源事实
runtime columns
subid, subname, apply_error_count, sync_error_count, confl_insert_exists, confl_update_origin_differs, confl_update_exists, confl_update_missing, confl_delete_origin_differs, confl_delete_missing, confl_multiple_unique_conflicts, stats_reset
来源引用
定义来源
center · PostgreSQL 18 · english-manuals:07c4de75a13df1b3c54bdaf39d73b0edb13d77d0e32357fdc438cb43a954b918
正文语言: zh-Hans · 2026-09-27@419045e