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_repack

Read PG 20 devel manual ↗

Whenever REPACK, CLUSTER, or VACUUM FULL is running, the pg_stat_progress_repack view will contain a row for each backend that is currently running one of these commands.

Development snapshot. These definitions may change before release.

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

Columns 14

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 processed.
commandtextThe command that is running. One of CLUSTER, REPACK, or VACUUM FULL.
phasetextCurrent processing phase. See Table 27.50.
repack_index_relidoidOID of the index defining the order of the rewritten table, or zero if no index ordering is requested.
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_insertedbigintNumber of heap tuples inserted. This counter only advances when the phase is seq scanning heap, index scanning heap, writing new heap or catch-up.
heap_tuples_updatedbigintNumber of heap tuples updated. This counter only advances when the phase is catch-up.
heap_tuples_deletedbigintNumber of heap tuples deleted. This counter only advances when the phase is catch-up.
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 2
  1. PG 19 → 20changed
  2. PG 18 → 19added

Definition snapshot: english-manuals:68d9a7c973dccc0c4c6063010e1… · English manual source