Skip to main content
Version: Next

pg_stat_progress_analyze

The pg_stat_progress_analyze view displays the progress of currently running ANALYZE commands. Each row represents a backend process executing ANALYZE and provides details such as the current phase, number of blocks sampled, and statistics computed. This view is useful for monitoring long-running ANALYZE operations.

ColumnTypeDescription
gp_segment_idintegerUnique identifier of a segment (or coordinator) instance. (This column is not present in the gp_stat_progress_analyze_summary view.)
pidintegerThe process identifier of the backend, or the coordinator process identifier if the gp_stat_progress_analyze_summary view.
datidoidThe object identifier of the database to which this backend is connected.
datnamenameName of the database to which this backend is connected.
relidoidThe object identifier of the table being analyzed.
phasetextCurrent processing phase.
sample_blks_totalbigintTotal number of heap blocks that will be sampled.
sample_blks_scannedbigintNumber of heap blocks scanned.
ext_stats_totalbigintNumber of extended statistics.
ext_stats_computedbigintNumber of extended statistics computed. This counter only advances when the phase is computing extended statistics.
child_tables_totalbigintNumber of child tables.
child_tables_donebigintNumber of child tables scanned. This counter only advances when the phase is acquiring inherited sample rows.
current_child_table_relidoidThe object identifier of the child table currently being scanned. This field is only valid when the phase is acquiring inherited sample rows. (This column is not present in the for gp_stat_progress_analyze_summary view.)