]> granicus.if.org Git - postgresql/commit
Fix typo in freeze_table_age implementation
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 1 Feb 2013 15:00:40 +0000 (12:00 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 1 Feb 2013 15:10:30 +0000 (12:10 -0300)
commit3c6e719eac07f64fb6672e0bc20547957a87575a
tree3fac55cbe4e4fefc960444f193d413e9e74941b1
parent1d857a6036fa0e17c6c4f9ee116622956a8fe920
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
src/backend/commands/vacuum.c