select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

SYSTEM CATALOGS / STATISTICS VIEWS

pg_stat_autovacuum_scores

Read PG 20 devel manual ↗

The pg_stat_autovacuum_scores view will contain one row for each table in the current database (including TOAST tables), showing the current autovacuum scores for that specific table.

Development snapshot. These definitions may change before release.

Kind
Statistics views
Columns in this snapshot
12
Definition source
English manual

Columns 12

ColumnTypeDescription / reference
relidoidOid of the table.
schemanamenameName of the schema that the table is in.
relnamenameName of the table.
scoredouble precisionMaximum value of all component scores. This is the value that autovacuum would use to sort the list of tables to process.
xid_scoredouble precisionTransaction ID age component score. Scores greater than autovacuum_freeze_score_weight indicate that autovacuum would vacuum the table for transaction ID wraparound prevention.
mxid_scoredouble precisionMultixact ID age component score. Scores greater than autovacuum_multixact_freeze_score_weight indicate that autovacuum would vacuum the table for multixact ID wraparound prevention.
vacuum_scoredouble precisionVacuum component score. Scores greater than autovacuum_vacuum_score_weight indicate that autovacuum would vacuum the table (unless autovacuum is disabled).
vacuum_insert_scoredouble precisionVacuum insert component score. Scores greater than autovacuum_vacuum_insert_score_weight indicate that autovacuum would vacuum the table (unless autovacuum is disabled).
analyze_scoredouble precisionAnalyze component score. Scores greater than autovacuum_analyze_score_weight indicate that autovacuum would analyze the table (unless autovacuum is disabled).
do_vacuumboolWhether autovacuum would vacuum the table. Note that even if the component scores indicate that autovacuum would vacuum the table, this may be false if autovacuum is disabled.
do_analyzeboolWhether autovacuum would analyze the table. Note that even if the component scores indicate that autovacuum would analyze the table, this may be false if autovacuum is disabled.
for_wraparoundboolWhether autovacuum would vacuum the table for wraparound prevention.
Column history across versions
Version history 1
  1. PG 18 → 19added

Definition snapshot: english-manuals:ba40679c022b0516d8fec41dd7d… · English manual source