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>, David Rowley <david.rowley@2ndquadrant.com>
Date: 2020-03-02T13:57:03Z
Lists: pgsql-hackers
On Tue, 2020-01-07 at 19:05 +0100, Tomas Vondra wrote: > This patch is currently in "needs review" state, but that seems quite > wrong - there's been a lot of discussions about how we might improve > behavior for append-only-tables, but IMO there's no clear consensus nor > a patch that we might review. > > So I think this should be either "waiting on author" or maybe "rejected > with feedback". Is there any chance of getting a reviewable patch in the > current commitfest? If not, I propose to mark it as RWF. > > I still hope we can improve this somehow in time for PG13. The policy is > not to allow new non-trivial patches in the last CF, but hopefully this > might be considered an old patch. I think that no conclusion was reached because there are *many* things that could be improved, and *many* interesting and ambitious ideas were vented. But I think it would be good to have *something* that addresses the immediate problem (INSERT-only tables are autovacuumed too late), as long as that does not have negative side-effects or blocks further improvements. I don't feel totally well with the very simplistic approach of this patch (use the same metric to trigger autoanalyze and autovacuum), but what about this: - a new table storage option autovacuum_vacuum_insert_threshold, perhaps a GUC of the same name, by default deactivated. - if tabentry->tuples_inserted exceeds this threshold, but not one of the others, lauch autovacuum with index_cleanup=off. How would you feel about that? 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