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_cluster

Read PG 18 manual ↗

Whenever CLUSTER or VACUUM FULL is running, the pg_stat_progress_cluster view will contain a row for each backend that is currently running either command.

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

Columns 12

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 clustered.
commandtextThe command that is running. Either CLUSTER or VACUUM FULL.
phasetextCurrent processing phase. See Table 27.41.
cluster_index_relidoidIf the table is being scanned using an index, this is the OID of the index being used; otherwise, it is zero.
heap_tuples_scannedbigintNumber of heap tuples scanned. This counter only advances when the phase is seq scanning heap, index scanning heap or writing new heap.
heap_tuples_writtenbigintNumber of heap tuples written. This counter only advances when the phase is seq scanning heap, index scanning heap or writing new heap.
heap_blks_totalbigintTotal number of heap blocks in the table. This number is reported as of the beginning of seq scanning heap.
heap_blks_scannedbigintNumber of heap blocks scanned. This counter only advances when the phase is seq scanning heap.
index_rebuild_countbigintNumber of indexes rebuilt. This counter only advances when the phase is rebuilding index.
Column history across versions
Version history 8
  1. PG 19 → 20changed
  2. PG 18 → 19changed
  3. PG 16 → 17changed
  4. PG 15 → 16changed
  5. PG 14 → 15changed
  6. PG 13 → 14changed
  7. PG 12 → 13changed
  8. PG 11 → 12added

Definition snapshot: english-manuals:97f866c4563b248ae3a52e492fe… · English manual source