Fix typo in freeze_table_age implementation

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 275a86bed8a09d372eb8e02966a847f0321aaa32
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2013-02-01T15:11:10Z
Releases: 9.0.12
Fix typo in freeze_table_age implementation

The original code used freeze_min_age instead of freeze_table_age.  The
main consequence of this mistake is that lowering freeze_min_age would
cause full-table scans to occur much more frequently, which causes
serious issues because the number of writes required is much larger.
That feature (freeze_min_age) is supposed to affect only how soon tuples
are frozen; some pages should still be skipped due to the visibility
map.

Backpatch to 8.4, where the freeze_table_age feature was introduced.

Report and patch from Andres Freund

Files

PathChange+/−
src/backend/commands/vacuum.c modified +1 −1