Re: CLUSTER command progress monitor
Tatsuro Yamada <yamada.tatsuro@lab.ntt.co.jp>
From: Tatsuro Yamada <yamada.tatsuro@lab.ntt.co.jp>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Date: 2017-09-04T11:17:38Z
Lists: pgsql-hackers
On 2017/09/04 15:38, Michael Paquier wrote: > On Thu, Aug 31, 2017 at 11:12 AM, Tatsuro Yamada > <yamada.tatsuro@lab.ntt.co.jp> wrote: >> Then I have questions. >> >> * Should we have separate views for them? Or should both be covered by the >> same view with some indication of which command (CLUSTER or VACUUM FULL) >> is actually running? > > Using the same view for both, and tell that this is rather VACUUM or > CLUSTER in the view, would be better IMO. Coming up with a name more > generic than pg_stat_progress_cluster may be better though if this > speaks with VACUUM FULL as well, user-facing documentation does not > say that VACUUM FULL is actually CLUSTER. Thanks for sharing your thoughts. Agreed. I'll add new column like a "command" to tell whether running CLUSTER or VACUUM. And how about this new view name? - pg_stat_progress_reorg Is it more general name than previous name if it covers both commands? >> I'll add this patch to CF2017-09. >> Any comments or suggestion are welcome. > > Nice to see that you are taking the time to implement patches for > upstream, Yamada-san! Same here. :) I'd like to contribute creating feature that is for DBA and users. Progress monitoring feature is important from my DBA experiences. I'm happy if you lend your hand. Thanks, Tatsuro Yamada
Commits
-
Fix progress reporting of CLUSTER / VACUUM FULL
- 6212276e4343 13.0 landed
- da47e43dc32e 12.0 landed
-
Fix thinko when ending progress report for a backend
- f4b91a50e9e6 9.6.16 landed
- 4950f09e7ae2 10.11 landed
- af28744288b1 11.6 landed
- 4c3e750ab4b5 12.0 landed
- ae060a52b288 13.0 landed
-
Report progress of REINDEX operations
- 03f9e5cba0ee 12.0 cited
-
Add progress reporting for CLUSTER and VACUUM FULL.
- 6f97457e0ddd 12.0 landed
-
Un-hide most cascaded-drop details in regression test results.
- 940311e4bb32 12.0 cited
-
Fix memory leak in printtup.c.
- f2004f19ed9c 12.0 cited
-
Remove unused macro
- fb5806533f9f 12.0 cited