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_create_index

Read PG 18 manual ↗

Whenever CREATE INDEX or REINDEX is running, the pg_stat_progress_create_index view will contain one row for each backend that is currently creating indexes.

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

Columns 16

ColumnTypeDescription / reference
pidintegerProcess ID of the backend creating indexes.
datidoidOID of the database to which this backend is connected.
datnamenameName of the database to which this backend is connected.
relidoidOID of the table on which the index is being created.
index_relidoidOID of the index being created or reindexed. During a non-concurrent CREATE INDEX, this is 0.
commandtextSpecific command type: CREATE INDEX, CREATE INDEX CONCURRENTLY, REINDEX, or REINDEX CONCURRENTLY.
phasetextCurrent processing phase of index creation. See Table 27.44.
lockers_totalbigintTotal number of lockers to wait for, when applicable.
lockers_donebigintNumber of lockers already waited for.
current_locker_pidbigintProcess ID of the locker currently being waited for.
blocks_totalbigintTotal number of blocks to be processed in the current phase.
blocks_donebigintNumber of blocks already processed in the current phase.
tuples_totalbigintTotal number of tuples to be processed in the current phase.
tuples_donebigintNumber of tuples already processed in the current phase.
partitions_totalbigintTotal number of partitions on which the index is to be created or attached, including both direct and indirect partitions. 0 during a REINDEX, or when the index is not partitioned.
partitions_donebigintNumber of partitions on which the index has already been created or attached, including both direct and indirect partitions. 0 during a REINDEX, or when the index is not partitioned.
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:98d0751ee8f5b545e23629bdde1… · English manual source