> If we do expose per-worker progress, a separate view is the better home.
> Most columns here are the leader's or shared, so a per-worker row would
> be mostly empty anyway.

A different idea other than aggregating the pids and oid's into a list
as is currently
being proposed, would be to have a "pg_stat_progress_vacuum_worker" view,
which initially will be 4 columns:

"pid"
"leader_pid"
"phase"
"oid"

and it will have a row for every worker ( or leader ) and the "oid" they are
processing, which could be a index ( or a heap if we get to that point of
parallel heap vacuum ).

My hesitation is this is not really a "progress" view, since it's not showing
progress related data. Just thought I'll put this out there for discussion
as well.

--
Sami


Reply via email to