Re: opportunistic tuple freezing

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: opportunistic tuple freezing
Дата
Msg-id 1253080529.24770.189.camel@jdavis
обсуждение исходный текст
Ответ на Re: opportunistic tuple freezing  (Jeff Janes <jeff.janes@gmail.com>)
Список pgsql-hackers
On Tue, 2009-09-15 at 20:56 -0700, Jeff Janes wrote:
> Under what kind of circumstances/workload to you think this patch is
> most likely to show its full potential?  I can try to test it out, but
> would like some guidance.  I am guessing it is when the anti-wrap
> around vacuums come due, but that is such a rare event, it could both
> be hard to test for and also be of limited real-world applicability.

I would expect the benefit to come when tuples start to reach
vacuum_freeze_min_age, and the vacuums start freezing them. Without the
patch, I expect that, on average, vacuum will freeze the same page
multiple times even if the tuples are all quite old during the first
round of freezing.

So this would really only be a problem in a long steady state with a
high volume of transactions. The patch will hopefully reduce the write
volume going on in the background.

I expect the biggest benefit comes when the tuples on a given page may
have been inserted/updated over a few million transactions. Under normal
circumstances, it won't be a huge win, but it's not a huge patch,
either ;)

Regards,Jeff Davis



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Abhijit Menon-Sen
Дата:
Сообщение: Re: Logging configuration changes [REVIEW]
Следующее
От: Joe Conway
Дата:
Сообщение: Re: query cancel issues in contrib/dblink