postgresql_16:4.13.4.6 Base Backup Progress Reporting
PostgreSQL 16 > Server Administration > Monitoring Database Activity > Progress Reporting > Base Backup Progress Reporting
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. The tables below describe the information that will be reported and provide information about how to interpret it.
| Column Type Description | | --- | | pid integer Process ID of a WAL sender process. | | phase text Current processing phase. See (see basebackup-phases). | | backup_total bigint Total 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_streamed bigint Amount of data streamed. This counter only advances when the phase is streaming database files or transferring wal files. | | tablespaces_total bigint Total number of tablespaces that will be streamed. | | tablespaces_streamed bigint Number of tablespaces streamed. This counter only advances when the phase is streaming database files. |
| Phase | Description | | --- | --- | | initializing | The WAL sender process is preparing to begin the backup. This phase is expected to be very brief. | | waiting for checkpoint to finish | The WAL sender process is currently performing pg_backup_start to prepare to take a base backup, and waiting for the start-of-backup checkpoint to finish. | | estimating backup size | The WAL sender process is currently estimating the total amount of database files that will be streamed as a base backup. | | streaming database files | The WAL sender process is currently streaming database files as a base backup. | | waiting for wal archiving to finish | The WAL sender process is currently performing pg_backup_stop to finish the backup, and waiting for all the WAL files required for the base backup to be successfully archived. If either --wal-method=none or --wal-method=stream is specified in pg_basebackup, the backup will end when this phase is completed. | | transferring wal files | The WAL sender process is currently transferring all WAL logs generated during the backup. This phase occurs after waiting for wal archiving to finish phase if --wal-method=fetch is specified in pg_basebackup. The backup will end when this phase is completed. |