Re: Autovac vs manual with analyze
От | Alvaro Herrera |
---|---|
Тема | Re: Autovac vs manual with analyze |
Дата | |
Msg-id | 20100315223543.GH3323@alvh.no-ip.org обсуждение исходный текст |
Ответ на | Re: Autovac vs manual with analyze (Scott Whitney <scott@journyx.com>) |
Список | pgsql-admin |
Scott Whitney wrote: > So, my questions are: > > a) Is the manual vacuum needed for performance reasons, or is auto-vac sufficient? > b) How do my settings look? > c) Is there a way that the clogs get cleared via autovac, would a full vac of just template1/template0 (if that last ispossible) do it? > Autovacuum should be sufficient, provided that the FSM settings are large enough to hold 20% (plus a bit of slack) of your database total size in dead tuples. If they are not, your database starts to bloat and you need ugly hacks like vacuum full to recover the dead space. In 8.1, clog is only cleared by database-wide vacuums, which IIRC autovac doesn't do unless it does a for-Xid-wraparound run, which is not often. Probably a weekly database-wide vacuum (not full, i.e. vacuumdb without -f) is enough. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.
В списке pgsql-admin по дате отправления: