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: Use pgstat_progress_update_multi_param() where possible
Date: Mon, 22 Feb 2021 05:22:03 +0000
Message-ID: <E1lE3fX-0006OH-MR@gemulon.postgresql.org> (raw)

Use pgstat_progress_update_multi_param() where possible

This commit changes one code path in REINDEX INDEX and one code path
in CREATE INDEX CONCURRENTLY to report the progress of each operation
using pgstat_progress_update_multi_param() rather than
multiple calls to pgstat_progress_update_param().  This has the
advantage to make the progress report more consistent to the end-user
without impacting the amount of information provided.

Author: Bharath Rupireddy
Discussion: https://postgr.es/m/CALj2ACV5zW7GxD8D_tyO==bcj6ZktQchEKWKPBOAGKiLhAQo=w@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/92942642788c9d73e4c090ee0a77603f7afbc1d7

Modified Files
--------------
src/backend/catalog/index.c      | 14 ++++++++++----
src/backend/commands/indexcmds.c | 19 ++++++++++++++-----
2 files changed, 24 insertions(+), 9 deletions(-)



Message-ID: <E1lE3fX-0006OH-MR@gemulon.postgresql.org>
Permalink:  ../E1lE3fX-0006OH-MR@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lE3fX-0006OH-MR@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: Use pgstat_progress_update_multi_param() where possible
  In-Reply-To: <E1lE3fX-0006OH-MR@gemulon.postgresql.org>
  References: <E1lE3fX-0006OH-MR@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