pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add progress reporting to pg_checksums
Date: Tue, 02 Apr 2019 02:04:53 +0000
Message-ID: <E1hB8nF-0005i9-I2@gemulon.postgresql.org> (raw)

Add progress reporting to pg_checksums

This adds a new option to pg_checksums called -P/--progress, showing
every second some information about the computation state of an
operation for --check and --enable (--disable only updates the control
file and is quick).  This requires a pre-scan of the data folder so as
the total size of checksummable items can be calculated, and then it
gets compared to the amount processed.

Similarly to what is done for pg_rewind and pg_basebackup, the
information printed in the progress report consists of the current
amount of data computed and the total amount of data to compute.  This
could be extended later on.

Author: Michael Banck, Bernd Helmle
Reviewed-by: Fabien Coelho, Michael Paquier
Discussion: https://postgr.es/m/1535719851.1286.17.camel@credativ.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/280e5f14056bf34a0f52320f659fb93acfda0876

Modified Files
--------------
doc/src/sgml/ref/pg_checksums.sgml  |  11 ++++
src/bin/pg_checksums/pg_checksums.c | 114 +++++++++++++++++++++++++++++++++---
2 files changed, 117 insertions(+), 8 deletions(-)



Message-ID: <E1hB8nF-0005i9-I2@gemulon.postgresql.org>
Permalink:  ../E1hB8nF-0005i9-I2@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hB8nF-0005i9-I2@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: michael@paquier.xyz
  Subject: Re: pgsql: Add progress reporting to pg_checksums
  In-Reply-To: <E1hB8nF-0005i9-I2@gemulon.postgresql.org>
  References: <E1hB8nF-0005i9-I2@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