From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Report NULL as total backup size if it's not estimated.
Date: Tue, 24 Mar 2020 01:45:24 +0000
Message-ID: <E1jGYdA-0003M9-Jn@gemulon.postgresql.org> (raw)
Report NULL as total backup size if it's not estimated.
Previously 0 was reported in pg_stat_progress_basebackup.total_backup
if the total backup size was not estimated. Per discussion, our consensus
is that NULL is better choise as the value in total_backup in that case.
So this commit makes pg_stat_progress_basebackup view report NULL
in total_backup column if the estimation is disabled.
Bump catversion.
Author: Fujii Masao
Reviewed-by: Amit Langote, Magnus Hagander, Alvaro Herrera
Discussion: https://postgr.es/m/CABUevExnhOD89zBDuPvfAAh243RzNpwCPEWNLtMYpKHMB8gbAQ@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/67e0adfb3f98f1e4a89a32b6f2e59774ce579146
Modified Files
--------------
doc/src/sgml/monitoring.sgml | 2 +-
doc/src/sgml/ref/pg_basebackup.sgml | 2 +-
src/backend/catalog/system_views.sql | 2 +-
src/backend/replication/basebackup.c | 19 +++++++++++++++++--
src/include/catalog/catversion.h | 2 +-
src/test/regress/expected/rules.out | 5 ++++-
6 files changed, 25 insertions(+), 7 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: fujii@postgresql.org
Subject: Re: pgsql: Report NULL as total backup size if it's not estimated.
In-Reply-To: <E1jGYdA-0003M9-Jn@gemulon.postgresql.org>
References: <E1jGYdA-0003M9-Jn@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox