Replace hardcoded 200000000 with autovacuum_freeze_max_age

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

Commit: d9484ab5f3cbcfea64536fec333723f9aa4c0b2c
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2013-11-30T00:48:08Z
Releases: 9.3.2
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

Files

PathChange+/−
src/backend/access/transam/multixact.c modified +10 −2