Re: Unexplained Major Vacuum Archive Activity During Vacuum
От | Alban Hertroys |
---|---|
Тема | Re: Unexplained Major Vacuum Archive Activity During Vacuum |
Дата | |
Msg-id | B291301B-2C69-4C45-AC8E-EF7CF9A75018@gmail.com обсуждение исходный текст |
Ответ на | Re: Unexplained Major Vacuum Archive Activity During Vacuum (Shaun Thomas <sthomas@optionshouse.com>) |
Ответы |
Re: Unexplained Major Vacuum Archive Activity During Vacuum
|
Список | pgsql-general |
On 1 Nov 2012, at 17:44, Shaun Thomas wrote: > On 11/01/2012 11:40 AM, Alban Hertroys wrote: > >> Instead of attempting to postpone freeze until beyond the life >> expectancy of our universe, what you probably should have done is >> vacuum more often so that vacuum has less work to do. > > More often than every night, with autovacuum running in the background to get regular stuff that happens during the day?650M transactions is 3 or 4 days for us. That's hardly the lifetime of the universe. And since I didn't modify vacuum_freeze_table_age,any table vacuumed after 150M transactions is given a vacuum freeze anyway. No harm done. 150M database transactions a day sounds excessive, is there no way to reduce that number? That aside, 650M transactions in 3 at 4 days is not equal to 150M transactions a day. It can be quite a few more. Since youmentioned that the market halted for 2 days there were probably a lot more transactions waiting than usual; not just piledup work, but lots of attempts at corrections as well. It wouldn't surprise me if you went over 650M transactions thatday. > It's my understanding you *don't* want to freeze excessively. I think once every day is bad enough, honestly. That's not what I was suggesting. I wasn't talking about vacuum freeze but normal autovacuum with more aggressive parameters. That should handle transaction wrap-around automatically when it looks like you're getting close to the transaction wrap-aroundid. As per the docs in 8.2, vacuum freeze was deprecated back then already. Knowing the devs a bit, there wasa good reason to do so. Alban Hertroys -- If you can't see the forest for the trees, cut the trees and you'll find there is no forest.
В списке pgsql-general по дате отправления: