postgresql/src/bin
Michael Paquier 4211fbd841 Add PROCESS_MAIN to VACUUM
Disabling this option is useful to run VACUUM (with or without FULL) on
only the toast table of a relation, bypassing the main relation.  This
option is enabled by default.

Running directly VACUUM on a toast table was already possible without
this 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 parent
relation) in the VACUUM command, and it required a scan of pg_class to
know the name of the toast table.  So this feature is basically a
shortcut 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 as
an equivalent of PROCESS_MAIN.

Regression tests are added to cover VACUUM and VACUUM FULL, looking at
pg_stat_all_tables.vacuum_count to see how many vacuums have run on
each table, main or toast.

Author: Nathan Bossart
Reviewed-by: Masahiko Sawada
Discussion: https://postgr.es/m/20221230000028.GA435655@nathanxps13
2023-03-06 16:41:05 +09:00
..
initdb Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_amcheck Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_archivecleanup Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_basebackup Revise pg_pwrite_zeros() 2023-03-06 13:21:33 +09:00
pg_checksums Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_config Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_controldata Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_ctl Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_dump Mark options as deprecated in usage output 2023-03-02 14:36:37 +01:00
pg_resetwal Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_rewind pg_rewind: Fix determining TLI when server was just promoted. 2023-02-23 15:22:53 +02:00
pg_test_fsync Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_test_timing Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_upgrade Remove useless casts to (void *) in arguments of some system functions 2023-02-07 06:57:59 +01:00
pg_verifybackup Add support for progress reporting to pg_verifybackup 2023-02-06 14:40:31 +09:00
pg_waldump Update copyright for 2023 2023-01-02 15:00:37 -05:00
pgbench pgbench: Prepare commands in pipelines in advance 2023-02-21 10:56:37 +01:00
pgevent Update copyright for 2023 2023-01-02 15:00:37 -05:00
psql Add PROCESS_MAIN to VACUUM 2023-03-06 16:41:05 +09:00
scripts Add PROCESS_MAIN to VACUUM 2023-03-06 16:41:05 +09:00
Makefile Update copyright for 2023 2023-01-02 15:00:37 -05:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00