Lower minimum maintenance_work_mem to 64kB
authorJohn Naylor <[email protected]>
Tue, 6 Aug 2024 13:38:33 +0000 (20:38 +0700)
committerJohn Naylor <[email protected]>
Sat, 10 Aug 2024 07:52:56 +0000 (14:52 +0700)
commitbbf668d66fbf61d45f1c187b08a5f51537bfb7c7
treefbd601cfdf04291dbd407c28a18ac47ed970bf4a
parentf5a1311fccd2ed24a9fb42aa47a17d1df7126039
Lower minimum maintenance_work_mem to 64kB

Since the introduction of TID store, vacuum uses far less memory in
the common case than in versions 16 and earlier. Invoking multiple
rounds of index vacuuming in turn requires a much larger table. It'd
be a good idea anyway to cover this case in regression testing, and a
lower limit is less painful for slow buildfarm animals. The reason to
do it now is to re-enable coverage of the bugfix in commit 83c39a1f7f.

For consistency, give autovacuum_work_mem the same treatment.

Suggested by Andres Freund
Tested by Melanie Plageman
Backpatch to v17, where TID store was introduced

Discussion: https://postgr.es/m/20240516205458[email protected]
Discussion: https://postgr.es/m/20240722164745.fvaoh6g6zprisqgp%40awork3.anarazel.de
src/backend/postmaster/autovacuum.c
src/backend/utils/misc/guc_tables.c
src/backend/utils/misc/postgresql.conf.sample