|From:||Jeff Davis <pgsql(at)j-davis(dot)com>|
|Subject:||opportunistic tuple freezing|
|Views:||Raw Message | Whole Thread | Download mbox | Resend email|
Attached is a patch to implement the idea discussed here:
If VACUUM freezes one tuple on a page, it's likely that there are others
on the same page that are close to vacuum_freeze_min_age, but not quite.
Because the page is already dirty from freezing one tuple, it makes
sense to be more aggressive about freezing the rest, in the hope that
all the tuples will be frozen, and we will not have to dirty the page
This patch introduces a GUC vacuum_freeze_opportunistic_ratio. If one
tuple on a page is frozen by vacuum, it effectively multiplies
vacuum_freeze_min_age by vacuum_freeze_opportunistic_ratio and uses that
lower (more aggressive) value only for the current page.
The reason we don't just freeze all the tuples we can (effectively
setting the vacuum_freeze_opportunistic_ratio to zero) is to preserve
transaction ID information for diagnosing problems.
|Next Message||Itagaki Takahiro||2009-08-17 01:53:46||Encoding issues in console and eventlog on win32|
|Previous Message||Alvaro Herrera||2009-08-17 01:08:46||Re: Croatian translation|