Add --min-xid-age and --min-mxid-age options to vacuumdb
authorMichael Paquier <michael@paquier.xyz>
Thu, 31 Jan 2019 04:06:51 +0000 (13:06 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 31 Jan 2019 04:07:56 +0000 (13:07 +0900)
commit00d1e88d36687ceae1be2317fac90e967941c085
tree1a3c52aa0db5956a743649108b4361b18ee15368
parent5f5c01459053c0975b89b5aa1a3d705e677348ae
Add --min-xid-age and --min-mxid-age options to vacuumdb

These two new options can be used to improve the selectivity of
relations to vacuum or analyze even further depending on the age of
respectively their transaction ID or multixact ID, so as it is possible
to prioritize tables to prevent wraparound of one or the other.
Combined with --table, it is possible to target a subset of tables to
choose as potential processing targets.

Author: Nathan Bossart
Reviewed-by: Michael Paquier, Masahiko Sawada
Discussion: https://postgr.es/m/FFE5373C-E26A-495B-B5C8-911EC4A41C5E@amazon.com
doc/src/sgml/ref/vacuumdb.sgml
src/bin/scripts/t/100_vacuumdb.pl
src/bin/scripts/vacuumdb.c