System Catalogs / Statistics views
pg_stat_autovacuum_scores
Read the PG 20 devel manualThe 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.
Reading PG 20devel·documented in 2 of 24 versions, 19 to 20
Development snapshot. These definitions may change before release.
- Kind
- Statistics views
- Columns in this snapshot
- 12
- Definition source
- English manual
Columns 12
As listed in the PostgreSQL 20 devel manual.
| Column | Type | Description / reference |
|---|---|---|
relid | oid | Oid of the table. |
schemaname | name | Name of the schema that the table is in. |
relname | name | Name of the table. |
score | double precision | Maximum value of all component scores. This is the value that autovacuum would use to sort the list of tables to process. |
xid_score | double precision | Transaction ID age component score. Scores greater than autovacuum_freeze_score_weight indicate that autovacuum would vacuum the table for transaction ID wraparound prevention. |
mxid_score | double precision | Multixact 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_score | double precision | Vacuum component score. Scores greater than autovacuum_vacuum_score_weight indicate that autovacuum would vacuum the table (unless autovacuum is disabled). |
vacuum_insert_score | double precision | Vacuum insert component score. Scores greater than autovacuum_vacuum_insert_score_weight indicate that autovacuum would vacuum the table (unless autovacuum is disabled). |
analyze_score | double precision | Analyze component score. Scores greater than autovacuum_analyze_score_weight indicate that autovacuum would analyze the table (unless autovacuum is disabled). |
do_vacuum | bool | Whether 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_analyze | bool | Whether 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_wraparound | bool | Whether autovacuum would vacuum the table for wraparound prevention. |
Column history across versions
Version history 1
- 18 → 19 added
Definition snapshot: english-manuals:6a33cf8193b74791d8ab910490c… · English manual source