| From: | Simon Elbaz <elbazsimon9(at)gmail(dot)com> |
|---|---|
| To: | pgsql-general(at)lists(dot)postgresql(dot)org |
| Subject: | Aggressive vacuum frequency on a table |
| Date: | 2023-02-16 09:58:56 |
| Message-ID: | CAPOUM=dDvfS02Ds-St+Arjm-ObJ2YhW6OS7yRZ++XKWGESJnSw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Hi list,
The PostgreSQL documentation says in
https://www.postgresql.org/docs/15/routine-vacuuming.html#VACUUM-FOR-STATISTICS
:
*The maximum time that a table can go unvacuumed is two billion
transactions minus the vacuum_freeze_min_age value at the time of the last
aggressive vacuum.*
*...*
*This implies that if a table is not otherwise vacuumed, autovacuum will be
invoked on it approximately once every autovacuum_freeze_max_age minus
vacuum_freeze_min_age transactions.*
From what I have understood, a table is eligible for aggressive vacuum when
it reaches vacuum_freeze_table_age.
Then each table row becomes eligible when it reaches vacuum_freeze_min_age.
The autovacuum frequency would be then *autovacuum_freeze_max_age minus
vacuum_freeze_table_age transactions* (and not *autovacuum_freeze_max_age
minus vacuum_freeze_min_age transactions).*
Thanks for any answer
Regards
Simon
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Laurenz Albe | 2023-02-16 10:22:12 | Re: Multi-column index: Which column order |
| Previous Message | Ajin Cherian | 2023-02-16 07:54:15 | Re: Support logical replication of DDLs |