select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

SYSTEM CATALOGS / PROGRESS REPORTING

pg_stat_progress_analyze

Read PG 18 manual ↗

Whenever ANALYZE is running, the pg_stat_progress_analyze view will contain a row for each backend that is currently running that command.

Kind
Progress reporting
Columns in this snapshot
13
Definition source
English manual

Columns 13

ColumnTypeDescription / reference
pidintegerProcess ID of backend.
datidoidOID of the database to which this backend is connected.
datnamenameName of the database to which this backend is connected.
relidoidOID of the table being analyzed.
phasetextCurrent processing phase. See Table 27.39.
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_relidoidOID of the child table currently being scanned. This field is only valid when the phase is acquiring inherited sample rows.
delay_timedouble precisionTotal time spent sleeping due to cost-based delay (see Section 19.10.2), in milliseconds (if track_cost_delay_timing is enabled, otherwise zero).
Column history across versions
Version history 8
  1. PG 19 → 20changed
  2. PG 18 → 19changed
  3. PG 17 → 18changed
  4. PG 16 → 17changed
  5. PG 15 → 16changed
  6. PG 14 → 15changed
  7. PG 13 → 14changed
  8. PG 12 → 13added

Definition snapshot: english-manuals:13debb7f99b4a0cd3aab72a4287… · English manual source