pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Report progress of REINDEX operations
Date: Sun, 07 Apr 2019 10:39:01 +0000
Message-ID: <E1hD5CX-0000l0-MI@gemulon.postgresql.org> (raw)

Report progress of REINDEX operations

This uses the same infrastructure that the CREATE INDEX progress
reporting uses.  Add a column to pg_stat_progress_create_index to
report the OID of the index being worked on.  This was not necessary
for CREATE INDEX, but it's useful for REINDEX.

Also edit the phase descriptions a bit to be more consistent with the
source code comments.

Discussion: https://www.postgresql.org/message-id/ef6a6757-c36a-9e81-123f-13b19e36b7d7%402ndquadrant.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/03f9e5cba0ee1633af4abe734504df50af46fbd8

Modified Files
--------------
doc/src/sgml/monitoring.sgml         | 50 ++++++++++++++++++++++++++++--------
src/backend/catalog/index.c          | 10 ++++++++
src/backend/catalog/system_views.sql |  9 ++++---
src/backend/commands/indexcmds.c     | 41 +++++++++++++++++++++++++----
src/include/catalog/catversion.h     |  2 +-
src/include/commands/progress.h      |  3 +++
src/test/regress/expected/rules.out  |  9 ++++---
7 files changed, 101 insertions(+), 23 deletions(-)



Message-ID: <E1hD5CX-0000l0-MI@gemulon.postgresql.org>
Permalink:  ../E1hD5CX-0000l0-MI@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hD5CX-0000l0-MI@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: peter@eisentraut.org
  Subject: Re: pgsql: Report progress of REINDEX operations
  In-Reply-To: <E1hD5CX-0000l0-MI@gemulon.postgresql.org>
  References: <E1hD5CX-0000l0-MI@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