pgsql: Report progress of streaming base backup.

From: Fujii Masao <fujii(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Report progress of streaming base backup.
Date: 2020-03-03 03:05:24
Message-ID: E1j8xs4-0004wa-3O@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Report progress of streaming base backup.

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
Reviewed-by: Kyotaro Horiguchi, Amit Langote, Sergei Kornilov
Discussion: https://postgr.es/m/9ed8b801-8215-1f3d-62d7-65bff53f6e94@oss.nttdata.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e65497df8f85ab9b9084c928ff69f384ea729b24

Modified Files
--------------
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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2020-03-03 03:26:16 pgsql: Fix the name of the first WAL segment file, in docs.
Previous Message Michael Paquier 2020-03-03 01:13:31 pgsql: Preserve pg_index.indisclustered across REINDEX CONCURRENTLY