postgresql/src/bin
Peter Geoghegan 3499df0dee Support disabling index bypassing by VACUUM.
Generalize the INDEX_CLEANUP VACUUM parameter (and the corresponding
reloption): make it into a ternary style boolean parameter.  It now
exposes a third option, "auto".  The "auto" option (which is now the
default) enables the "bypass index vacuuming" optimization added by
commit 1e55e7d1.

"VACUUM (INDEX_CLEANUP TRUE)" is redefined to once again make VACUUM
simply do any required index vacuuming, regardless of how few dead
tuples are encountered during the first scan of the target heap relation
(unless there are exactly zero).  This gives users a way of opting out
of the "bypass index vacuuming" optimization, if for whatever reason
that proves necessary.  It is also expected to be used by PostgreSQL
developers as a testing option from time to time.

"VACUUM (INDEX_CLEANUP FALSE)" does the same thing as it always has: it
forcibly disables both index vacuuming and index cleanup.  It's not
expected to be used much in PostgreSQL 14.  The failsafe mechanism added
by commit 1e55e7d1 addresses the same problem in a simpler way.
INDEX_CLEANUP can now be thought of as a testing and compatibility
option.

Author: Peter Geoghegan <pg@bowt.ie>
Reviewed-By: Masahiko Sawada <sawada.mshk@gmail.com>
Reviewed-By: Justin Pryzby <pryzby@telsasoft.com>
Discussion: https://postgr.es/m/CAH2-WznrBoCST4_Gxh_G9hA8NzGUbeBGnOUC8FcXcrhqsv6OHQ@mail.gmail.com
2021-06-18 20:04:07 -07:00
..
initdb Work around portability issue with newer versions of mktime(). 2021-06-13 14:32:42 -04:00
pg_amcheck doc: Group options in pg_amcheck reference page 2021-06-03 06:55:04 +02:00
pg_archivecleanup Translation updates 2021-05-17 14:30:27 +02:00
pg_basebackup Translation updates 2021-05-17 14:30:27 +02:00
pg_checksums Translation updates 2021-05-17 14:30:27 +02:00
pg_config Translation updates 2021-05-17 14:30:27 +02:00
pg_controldata Translation updates 2021-05-10 14:36:21 +02:00
pg_ctl Translation updates 2021-05-17 14:30:27 +02:00
pg_dump Work around portability issue with newer versions of mktime(). 2021-06-13 14:32:42 -04:00
pg_resetwal Translation updates 2021-05-10 14:36:21 +02:00
pg_rewind Translation updates 2021-05-17 14:30:27 +02:00
pg_test_fsync Translation updates 2021-05-17 14:30:27 +02:00
pg_test_timing Translation updates 2021-05-17 14:30:27 +02:00
pg_upgrade Clean up cpluspluscheck violation. 2021-05-20 13:03:08 -04:00
pg_verifybackup Translation updates 2021-05-17 14:30:27 +02:00
pg_waldump Translation updates 2021-05-10 14:36:21 +02:00
pgbench Improve version reporting in pgbench. 2021-06-18 17:05:23 -04:00
pgevent Update copyright for 2021 2021-01-02 13:06:25 -05:00
psql Support disabling index bypassing by VACUUM. 2021-06-18 20:04:07 -07:00
scripts Support disabling index bypassing by VACUUM. 2021-06-18 20:04:07 -07:00
Makefile Add pg_amcheck, a CLI for contrib/amcheck. 2021-03-12 13:00:01 -05:00