pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make pg_basebackup ask the server to estimate the total backup s
Date: Thu, 19 Mar 2020 08:10:17 +0000
Message-ID: <E1jEqFt-0005yC-MP@gemulon.postgresql.org> (raw)

Make pg_basebackup ask the server to estimate the total backup size, by default.

This commit changes pg_basebackup so that it specifies PROGRESS option in
BASE_BACKUP replication command whether --progress is specified or not.
This causes the server to estimate the total backup size and report it in
pg_stat_progress_basebackup.backup_total, by default. This is reasonable
default because the time required for the estimation would not be so large
in most cases.

Also this commit adds new option --no-estimate-size to pg_basebackup.
This option prevents the server from the estimation, and so is useful to
avoid such estimation time if it's too long.

Author: Fujii Masao
Reviewed-by: Magnus Hagander, Amit Langote
Discussion: https://postgr.es/m/CABUevEyDPPSjP7KRvfTXPdqOdY5aWNkqsB5aAXs3bco5ZwtGHg@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/monitoring.sgml          | 10 ++++-----
doc/src/sgml/ref/pg_basebackup.sgml   | 39 +++++++++++++++++++++--------------
src/bin/pg_basebackup/pg_basebackup.c | 16 +++++++++++++-
3 files changed, 44 insertions(+), 21 deletions(-)



Message-ID: <E1jEqFt-0005yC-MP@gemulon.postgresql.org>
Permalink:  ../E1jEqFt-0005yC-MP@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jEqFt-0005yC-MP@gemulon.postgresql.org

 · 

reply

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: Make pg_basebackup ask the server to estimate the total backup s
  In-Reply-To: <E1jEqFt-0005yC-MP@gemulon.postgresql.org>
  References: <E1jEqFt-0005yC-MP@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