Re: Berserk Autovacuum (let's save next Mandrill)
Laurenz Albe <laurenz.albe@cybertec.at>
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Tomas Vondra <tomas.vondra@2ndquadrant.com>, Amit Kapila <amit.kapila16@gmail.com>
Cc: Masahiko Sawada <sawada.mshk@gmail.com>, Darafei Komяpa Praliaskouski <me@komzpa.net>, Andres Freund <andres@anarazel.de>, PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>, Alvaro Herrera <alvherre@2ndquadrant.com>, Michael Banck <mbanck@gmx.net>, dgrowleyml@gmail.com
Date: 2020-03-04T15:15:47Z
Lists: pgsql-hackers
Attachments
- 0001-Autovacuum-tables-that-have-received-only-inserts.v2.patch (text/x-patch) patch v2-0001
On Tue, 2020-03-03 at 16:28 +0100, Laurenz Albe wrote: > As a more substantial base for discussion, here is a patch that: > > - introduces a GUC and reloption "autovacuum_vacuum_insert_limit", > default 10000000 > > - introduces a statistics counter "inserts_since_vacuum" per table > that gets reset to 0 after vacuum > > - causes autovacuum to run without cleaning up indexes if > inserts_since_vacuum > autovacuum_vacuum_insert_limit > and there is no other reason for an autovacuum I just realized that the exercise is pointless unless that autovacuum also runs with FREEZE on. Updated patch attached. Yours, Laurenz Albe
Commits
-
Further improve stability fix for partition_aggregate test.
- 18d85e9b8a2b 13.0 landed
-
Improve stability fix for partition_aggregate test.
- 7cb0a423f914 13.0 landed
-
Attempt to stabilize partitionwise_aggregate test
- cefb82d49e21 13.0 landed
-
Fix race condition in statext_store().
- fe3036527a1f 13.0 landed
- 6c426cd43790 12.3 landed
-
Attempt to fix unstable regression tests, take 2
- 24566b359d09 13.0 landed
-
Attempt to fix unstable regression tests
- 2dc16efedc76 13.0 landed
-
Trigger autovacuum based on number of INSERTs
- b07642dbcd8d 13.0 landed
-
Fix upper limit for vacuum_cleanup_index_scale_factor
- 4d54543efa5e 11.0 cited