]> granicus.if.org Git - postgresql/commit
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:48:08 +0000 (21:48 -0300)
commitd9484ab5f3cbcfea64536fec333723f9aa4c0b2c
tree9d1ebb4f3c53725500990dd76bb16b5131162050
parenta9380b5c333043fc1ffc342475b3b1f2c021e962
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