select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

SYSTEM CATALOGS / PROGRESS REPORTING

pg_stat_progress_basebackup

Read PG 18 manual ↗

Whenever an application like pg_basebackup is taking a base backup, the pg_stat_progress_basebackup view will contain a row for each WAL sender process that is currently running the BASE_BACKUP replication command and streaming the backup.

Kind
Progress reporting
Columns in this snapshot
6
Definition source
English manual

Columns 6

ColumnTypeDescription / reference
pidintegerProcess ID of a WAL sender process.
phasetextCurrent processing phase. See Table 27.48.
backup_totalbigintTotal amount of data that will be streamed. This is estimated and reported as of the beginning of 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.
backup_streamedbigintAmount of data streamed. This counter only advances when the phase is streaming database files or transferring wal files.
tablespaces_totalbigintTotal number of tablespaces that will be streamed.
tablespaces_streamedbigintNumber of tablespaces streamed. This counter only advances when the phase is streaming database files.
Column history across versions
Version history 7
  1. PG 19 → 20changed
  2. PG 18 → 19changed
  3. PG 16 → 17changed
  4. PG 15 → 16changed
  5. PG 14 → 15changed
  6. PG 13 → 14changed
  7. PG 12 → 13added

Definition snapshot: english-manuals:f996849ff31a0d61ccdf2c60b66… · English manual source