Re: [PROPOSAL] VACUUM Progress Checker.

From: Rahila Syed <rahilasyed90(at)gmail(dot)com>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PROPOSAL] VACUUM Progress Checker.
Date: 2015-07-02 02:00:51
Message-ID: CAH2L28v1QEmen11375C8d1iTxufgWJuDDZ8Dp6dJFVsGcYhiqQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello,

Thank you for suggestions.

>Yes, I suggest just a single column on pg_stat_activity called pct_complete

Reporting remaining time also can be crucial to make decisions regarding
continuing or aborting VACUUM.
The same has been suggested in the thread below,

http://www.postgresql.org/message-id/13072.1284826206@sss.pgh.pa.us

>trace_completion_interval = 5s (default)

>Every interval, we report the current % complete for any operation that
supports it. We just show NULL if the current operation has not reported
anything or never will.

>We do this for VACUUM first, then we can begin adding other operations as
we work out how (for that operation).

Thank you for explaining. This design seems good to me except, adding more
than one columns(percent_complete, remaining_time) if required to
pg_stat_activity can be less user intuitive than having a separate view for
VACUUM.

-Rahila Syed

On Tue, Jun 30, 2015 at 2:02 PM, Simon Riggs <simon(at)2ndquadrant(dot)com> wrote:

> On 30 June 2015 at 08:52, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> wrote:
>
>
>> I though about the possibilities of progress visualization - and one
>> possibility is one or two special column in pg_stat_activity table - this
>> info can be interesting for VACUUM started by autovacuum too.
>>
>
> Yes, I suggest just a single column on pg_stat_activity called pct_complete
>
> trace_completion_interval = 5s (default)
>
> Every interval, we report the current % complete for any operation that
> supports it. We just show NULL if the current operation has not reported
> anything or never will.
>
> We do this for VACUUM first, then we can begin adding other operations as
> we work out how (for that operation).
>
> --
> Simon Riggs http://www.2ndQuadrant.com/
> <http://www.2ndquadrant.com/>
> PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Rahila Syed 2015-07-02 02:41:44 Re: [PROPOSAL] VACUUM Progress Checker.
Previous Message Michael Paquier 2015-07-02 01:51:29 Re: Expending the use of xlog_internal.h's macros