pgsql: Fix full-table-vacuum request mechanism for MultiXactIds

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема pgsql: Fix full-table-vacuum request mechanism for MultiXactIds
Дата
Msg-id E1VmZ0b-0008HJ-Dq@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/f5f92bdc44ffdf577244e0d055825cacd0cdea10

Modified Files
--------------
src/backend/access/transam/multixact.c |   15 ++++++++
src/backend/commands/cluster.c         |   13 ++++---
src/backend/commands/vacuum.c          |   62 +++++++++++++++++++++++---------
src/backend/commands/vacuumlazy.c      |   18 +++++++---
src/include/access/multixact.h         |    2 ++
src/include/commands/vacuum.h          |    5 +--
6 files changed, 87 insertions(+), 28 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Truncate pg_multixact/'s contents during crash recovery
Следующее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Replace hardcoded 200000000 with autovacuum_freeze_max_age