You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Disabling this option is useful to run VACUUM (with or without FULL) ononly the toast table of a relation, bypassing the main relation. Thisoption is enabled by default.Running directly VACUUM on a toast table was already possible withoutthis feature, by using the non-deterministic name of a toast relation(as of pg_toast.pg_toast_N, where N would be the OID of the parentrelation) in the VACUUM command, and it required a scan of pg_class toknow the name of the toast table. So this feature is basically ashortcut to be able to run VACUUM or VACUUM FULL on a toast relation,using only the name of the parent relation.A new switch called --no-process-main is added to vacuumdb, to work asan equivalent of PROCESS_MAIN.Regression tests are added to cover VACUUM and VACUUM FULL, looking atpg_stat_all_tables.vacuum_count to see how many vacuums have run oneach table, main or toast.Author: Nathan BossartReviewed-by: Masahiko SawadaDiscussion:https://postgr.es/m/20221230000028.GA435655@nathanxps13