Skip to content

Set autovacuum_vacuum_insert_scale_factor in addition to other auto*_scale_factor options in mutate scale-table-autovacuum plus allow for autovacuum_vacuum_insert_threshold for very large tables - #195

Merged
hexylena merged 1 commit into
galaxyproject:mainfrom
natefoo:scale-table-autovacuum-insert-threshold
Nov 23, 2026

Conversation

@natefoo

@natefoo natefoo commented Nov 17, 2026

Copy link
Copy Markdown
Member
  • Required: I agree to the contribution policy
  • Required: I have added hand written code comments, where relevant.
  • Required: I have confirmed I have the copyright of my contribution, and am actually able to release all of my code under the project's GPLv3 license.
  • An LLM was used to generate code for this contribution - identified the issue and generated and additional params that needed tuning, updated the function

Update the mutate scale-table-autovacuum function to add autovacuum_vacuum_insert_* options. These are useful and in many cases more important than the non-insert options for tables that are almost all insert-only. For huge tables there's not really a low value of the _factor option that would cause a reasonable trigger, so _threshold applies before the _factor (and thus factor is set to zero if it would hit after threshold). Also set a threshold for small tables under which count of rows no changes will be made.

…o*_scale_factor` options in `mutate scale-table-autovacuum` plus allow for `autovacuum_vacuum_insert_threshold` for very large tables
@hexylena
hexylena merged commit ef335bf into galaxyproject:main Nov 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants