Replace hardcoded 200000000 with autovacuum_freeze_max_age
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 28 Nov 2013 19:45:29 +0000 (16:45 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Sat, 30 Nov 2013 00:47:09 +0000 (21:47 -0300)
commit76a31c689c627268067175b5d0687ce0dac9a4f4
treef16557e166706d46f82f5f7461fa74b701e1777c
parent79193c75f8c78ff494f32cd7b7ee79d7166c225b
Replace hardcoded 200000000 with autovacuum_freeze_max_age

Parts of the code used autovacuum_freeze_max_age to determine whether
anti-multixact-wraparound vacuums are necessary, while others used a
hardcoded 200000000 value.  This leads to problems when
autovacuum_freeze_max_age is set to a non-default value.  Use the latter
everywhere.

Backpatch to 9.3, where vacuuming of multixacts was introduced.

Andres Freund
src/backend/access/transam/multixact.c