On 2017/04/12 0:22, Fujii Masao wrote: > On Fri, Apr 7, 2017 at 9:53 AM, Amit Langote > <langote_amit...@lab.ntt.co.jp> wrote: >> On 2017/04/07 0:56, Fujii Masao wrote: >>> On Tue, Apr 4, 2017 at 10:19 AM, Amit Langote >>> <langote_amit...@lab.ntt.co.jp> wrote: >>>> It seems pg_stat_progress_vacuum is not supposed to appear in the table >>>> titled "Collected Statistics Views". It was added by c16dc1aca. Attached >>>> patch fixes that. >>> >>> Instead, it should appear in the table of "Dynamic Statistics Views" >>> because it reports dynamic info, i.e., progress, about VACUUM activity? >> >> I thought the same at first, but then realized we have a entirely separate >> section 28.4. Progress Reporting. > > Yes, but I don't think that removing that from 28.2 is an improvement > for users.
Perhaps you're right. Here's a patch that moves pg_stat_progress_vacuum to the Dynamic Statistics Views table. Thanks, Amit
>From adfdaaa612c15cfa5c9d63cc80846336fe0bc0ca Mon Sep 17 00:00:00 2001 From: amit <amitlangot...@gmail.com> Date: Wed, 12 Apr 2017 10:27:41 +0900 Subject: [PATCH] Move pg_stat_progress_vacuum to Table 28.1 Because, it sounds more like a Dynamic Statistics View than a Collected Statistics view. --- doc/src/sgml/monitoring.sgml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/doc/src/sgml/monitoring.sgml b/doc/src/sgml/monitoring.sgml index d42a461ad9..2a83671b53 100644 --- a/doc/src/sgml/monitoring.sgml +++ b/doc/src/sgml/monitoring.sgml @@ -324,6 +324,14 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser </entry> </row> + <row> + <entry><structname>pg_stat_progress_vacuum</><indexterm><primary>pg_stat_progress_vacuum</primary></indexterm></entry> + <entry>One row for each backend (including autovacuum worker processes) running + <command>VACUUM</>, showing current progress. + See <xref linkend='vacuum-progress-reporting'>. + </entry> + </row> + </tbody> </tgroup> </table> @@ -515,12 +523,6 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser yet included in <structname>pg_stat_user_functions</>).</entry> </row> - <row> - <entry><structname>pg_stat_progress_vacuum</><indexterm><primary>pg_stat_progress_vacuum</primary></indexterm></entry> - <entry>One row for each backend (including autovacuum worker processes) running - <command>VACUUM</>, showing current progress. - See <xref linkend='vacuum-progress-reporting'>.</entry> - </row> </tbody> </tgroup> </table> -- 2.11.0
-- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers