]> granicus.if.org Git - postgresql/commit - doc/src/sgml/ref/create_table.sgml
Separate multixact freezing parameters from xid's
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 13 Feb 2014 22:30:30 +0000 (19:30 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 13 Feb 2014 22:36:31 +0000 (19:36 -0300)
commit801c2dc72cb3c68a7c430bb244675b7a68fd541a
tree9818ca52e28b15b433b4d1bb55d39d2ee8ff8960
parentde4b6558be4285d8186e16f33ab474d619bb0cf6
Separate multixact freezing parameters from xid's

Previously we were piggybacking on transaction ID parameters to freeze
multixacts; but since there isn't necessarily any relationship between
rates of Xid and multixact consumption, this turns out not to be a good
idea.

Therefore, we now have multixact-specific freezing parameters:

vacuum_multixact_freeze_min_age: when to remove multis as we come across
them in vacuum (default to 5 million, i.e. early in comparison to Xid's
default of 50 million)

vacuum_multixact_freeze_table_age: when to force whole-table scans
instead of scanning only the pages marked as not all visible in
visibility map (default to 150 million, same as for Xids).  Whichever of
both which reaches the 150 million mark earlier will cause a whole-table
scan.

autovacuum_multixact_freeze_max_age: when for cause emergency,
uninterruptible whole-table scans (default to 400 million, double as
that for Xids).  This means there shouldn't be more frequent emergency
vacuuming than previously, unless multixacts are being used very
rapidly.

Backpatch to 9.3 where multixacts were made to persist enough to require
freezing.  To avoid an ABI break in 9.3, VacuumStmt has a couple of
fields in an unnatural place, and StdRdOptions is split in two so that
the newly added fields can go at the end.

Patch by me, reviewed by Robert Haas, with additional input from Andres
Freund and Tom Lane.
19 files changed:
doc/src/sgml/config.sgml
doc/src/sgml/maintenance.sgml
doc/src/sgml/ref/create_table.sgml
src/backend/access/common/reloptions.c
src/backend/access/transam/multixact.c
src/backend/access/transam/varsup.c
src/backend/commands/cluster.c
src/backend/commands/vacuum.c
src/backend/commands/vacuumlazy.c
src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c
src/backend/parser/gram.y
src/backend/postmaster/autovacuum.c
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample
src/include/commands/vacuum.h
src/include/nodes/parsenodes.h
src/include/postmaster/autovacuum.h
src/include/utils/rel.h