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,
>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