Re: Vacuum Tuning Question
От | Jeff Janes |
---|---|
Тема | Re: Vacuum Tuning Question |
Дата | |
Msg-id | CAMkU=1zV+_eucZ4OMK4r+SnLjho7+4sLi_mi8gjBbL1nYERLKQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Vacuum Tuning Question (Murthy Nunna <mnunna@fnal.gov>) |
Ответы |
RE: Vacuum Tuning Question
|
Список | pgsql-admin |
Hi,
I have a fairly large database (several TBs) where auto vacuum is enabled. My focus is to keep the datfrozenxid reasonably low and avoid manual vacuum.
which has its own problems like creating massive WALs in a short time etc. I would like to avoid manual vacuuming for this reason.
SELECT freez, txns, ROUND(100*(txns/freez::float)) AS perc, datname
FROM (SELECT foo.freez::int, age(datfrozenxid) AS txns, datname
FROM pg_database d JOIN (SELECT setting AS freez FROM pg_settings WHERE name = 'autovacuum_freeze_max_age') AS foo
ON (true) WHERE d.datallowconn) AS foo2 ORDER BY 3 DESC, 4 ASC;
...
Following are the settings I have. I am wondering if there is a way autovacuum can keep the above “datfrozenxid” low and not keep increasing. Thank you ahead time for reading my post.
В списке pgsql-admin по дате отправления: