Report progress of streaming base backup

Enterprise / PostgreSQL - Fujii Masao [postgresql.org] - 3 March 2020 03:03 UTC

This commit adds pg_stat_progress_basebackup view that reports the progress while an application like pg_basebackup is taking a base backup. This uses the progress reporting infrastructure added by c16dc1aca5e0, adding support for streaming base backup.

Bump catversion.

Author: Fujii Masao

e65497df8f Report progress of streaming base backup.
doc/src/sgml/monitoring.sgml | 163 ++++++++++++++++++++++++++++++++++-
doc/src/sgml/protocol.sgml | 2 +-
doc/src/sgml/ref/pg_basebackup.sgml | 16 ++++
src/backend/access/transam/xlog.c | 13 +++
src/backend/catalog/system_views.sql | 16 ++++
src/backend/replication/basebackup.c | 99 ++++++++++++++++++++-
src/backend/utils/adt/pgstatfuncs.c | 2 +
src/include/catalog/catversion.h | 2 +-
src/include/commands/progress.h | 14 +++
src/include/pgstat.h | 3 +-
src/test/regress/expected/rules.out | 15 ++++
11 files changed, 339 insertions(+), 6 deletions(-)

Upstream: git.postgresql.org


  • Share