postgresql/src/backend/access/common
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
..
attmap.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
bufmask.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
detoast.c Short-circuit slice requests that are for more than the object's size. 2021-03-22 14:01:20 -04:00
heaptuple.c Fix some typos, grammar and style in docs and comments 2021-02-24 16:13:17 +09:00
indextuple.c Rethink definition of pg_attribute.attcompression. 2021-05-27 13:24:27 -04:00
Makefile Allow configurable LZ4 TOAST compression. 2021-03-19 15:10:38 -04:00
printsimple.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
printtup.c Remove server and libpq support for old FE/BE protocol version 2. 2021-03-04 10:45:55 +02:00
relation.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
reloptions.c Support disabling index bypassing by VACUUM. 2021-06-18 20:04:07 -07:00
scankey.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
session.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
syncscan.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
toast_compression.c Initial pgindent and pgperltidy run for v14. 2021-05-12 13:14:10 -04:00
toast_internals.c Rethink definition of pg_attribute.attcompression. 2021-05-27 13:24:27 -04:00
tupconvert.c Initial pgindent and pgperltidy run for v14. 2021-05-12 13:14:10 -04:00
tupdesc.c Rethink definition of pg_attribute.attcompression. 2021-05-27 13:24:27 -04:00