]> granicus.if.org Git - postgresql/commit
Fix full-table-vacuum request mechanism for MultiXactIds
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 28 Nov 2013 19:52:54 +0000 (16:52 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Sat, 30 Nov 2013 00:47:13 +0000 (21:47 -0300)
commitf54106f77e6d71cbb3fa0924095e5142341fde2b
treecee909f9b7febc4d8cb40839f1bbf70b52f18d59
parent76a31c689c627268067175b5d0687ce0dac9a4f4
Fix full-table-vacuum request mechanism for MultiXactIds

While autovacuum dutifully launched anti-multixact-wraparound vacuums
when the multixact "age" was reached, the vacuum code was not aware that
it needed to make them be full table vacuums.  As the resulting
partial-table vacuums aren't capable of actually increasing relminmxid,
autovacuum continued to launch anti-wraparound vacuums that didn't have
the intended effect, until age of relfrozenxid caused the vacuum to
finally be a full table one via vacuum_freeze_table_age.

To fix, introduce logic for multixacts similar to that for plain
TransactionIds, using the same GUCs.

Backpatch to 9.3, where permanent MultiXactIds were introduced.

Andres Freund, some cleanup by Álvaro
src/backend/access/transam/multixact.c
src/backend/commands/cluster.c
src/backend/commands/vacuum.c
src/backend/commands/vacuumlazy.c
src/include/access/multixact.h
src/include/commands/vacuum.h