52.31. pg_stats_vacuum_indexes #

The view pg_stats_vacuum_indexes will contain one row for each index in the current database (including TOAST table indexes), showing statistics about vacuuming that specific index.

Table 52.31. pg_stats_vacuum_indexes Columns

Column Type

Description

relid oid

OID of an index

schema name

Name of the schema this index is in

relname name

Name of this index

total_blks_read int8

Number of database blocks read by vacuum operations performed on this index

total_blks_hit int8

Number of times database blocks were found in the buffer cache by vacuum operations performed on this index

total_blks_dirtied int8

Number of database blocks dirtied by vacuum operations performed on this index

total_blks_written int8

Number of database blocks written by vacuum operations performed on this index

rel_blks_read int8

Number of blocks vacuum operations read from this index

rel_blks_hit int8

Number of times blocks of this index were already found in the buffer cache by vacuum operations, so that a read was not necessary (this only includes hits in the Postgres Pro buffer cache, not the operating system's file system cache)

pages_deleted int8

Number of pages deleted by vacuum operations performed on this index

tuples_deleted int8

Number of dead tuples vacuum operations deleted from this index

wal_records int8

Total number of WAL records generated by vacuum operations performed on this index

wal_fpi int8

Total number of WAL full page images generated by vacuum operations performed on this index

wal_bytes numeric

Total amount of WAL bytes generated by vacuum operations performed on this index

blk_read_time int8

Time spent reading database blocks by vacuum operations performed on this index, in milliseconds (if track_io_timing is enabled, otherwise zero)

blk_write_time int8

Time spent writing database blocks by vacuum operations performed on this index, in milliseconds (if track_io_timing is enabled, otherwise zero)

delay_time float8

Time spent sleeping in a vacuum delay point by vacuum operations performed on this index, in milliseconds (see Section 18.4.4 for details)

system_time float8

System CPU time of vacuuming this index, in milliseconds

user_time float8

User CPU time of vacuuming this index, in milliseconds

total_time float8

Total time of vacuuming this index, in milliseconds

interrupts float8

Number of times vacuum operations performed on this index were interrupted on any errors