52.30. pg_stats_vacuum_database #

The view pg_stats_vacuum_database will contain one row for each database in the current cluster, showing statistics about vacuuming that databse.

Table 52.30. pg_stats_vacuum_database Columns

Column Type

Description

dbid oid

OID of a database

total_blks_read int8

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

total_blks_hit int8

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

total_blks_dirtied int8

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

total_blks_written int8

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

wal_records int8

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

wal_fpi int8

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

wal_bytes numeric

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

blk_read_time float8

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

blk_write_time float8

Time spent writing database blocks by vacuum operations performed on this database, 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 database, in milliseconds (see Section 18.4.4 for details)

system_time float8

System CPU time of vacuuming this database, in milliseconds

user_time float8

User CPU time of vacuuming this database, in milliseconds

total_time float8

Total time of vacuuming this database, in milliseconds

interrupts int4

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