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

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

百科 / 统计与指标 / pg_stat_progress_basebackup

pg_stat_progress_basebackup.backup_total

backup_total bigint Total amount of data that will be streamed. This counts archive data before any server-side compression. The estimate is reported as of the beginning of the streaming database files phase. Note that this is only an approximation …

当前查看 PostgreSQL 18。

中文定义与说明

backup_total bigint

将被流式传输的数据总量。统计的是服务器端压缩之前的归档数据量。估算值在 streaming database files 阶段开始时报告。注意,这只是一个近似值,因为数据库可能会在 streaming database files 阶段期间发生变化,而 WAL 日志也可能在稍后的备份阶段被包含进来。一旦流式传输的数据量超过了估计的总大小,该值始终与 backup_streamed 相同。如果在 pg_basebackup 中禁用估算(也就是说,指定了 --no-estimate-size 选项),这为 NULL。

说明

backup_total bigint Total amount of data that will be streamed. This counts archive data before any server-side compression. The estimate is reported as of the beginning of the streaming database files phase. Note that this is only an approximation since the database may change during streaming database files phase and WAL log may be included in the backup later. This is always the same value as backup_streamed once the amount of data streamed exceeds the estimated total size. If the estimation is disabled in pg_basebackup (i.e., --no-estimate-size option is specified), this is NULL .

视图
pg_stat_progress_basebackup
字段
backup_total
SQL 类型
bigint
字段定义记载的单位
未指定
重置条件
手册未为此视图记载 stats_reset 字段

用法

SELECT backup_total FROM pg_catalog.pg_stat_progress_basebackup;

手册定义

backup_total bigint

将被流式传输的数据总量。统计的是服务器端压缩之前的归档数据量。估算值在 streaming database files 阶段开始时报告。注意,这只是一个近似值,因为数据库可能会在 streaming database files 阶段期间发生变化,而 WAL 日志也可能在稍后的备份阶段被包含进来。一旦流式传输的数据量超过了估计的总大小,该值始终与 backup_streamed 相同。如果在 pg_basebackup 中禁用估算(也就是说,指定了 --no-estimate-size 选项),这为 NULL。

相关条目

文档与源码

来源构建
版本
18.6
构建
https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2
来源指纹
555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f

版本比较

PostgreSQL 17 → 18: 无变化。

比较已记录的接口与属性,排除来源指纹和构建元数据。某个样本中没有记录,不能据此判断实际引入或移除的版本。

相关条目

导出 JSON · 返回统计与指标 · 收录范围为 PostgreSQL 13 至 20;最早采样版本不一定是实际引入版本。