Change the autovacuum config for some tables
Looking at data for the the patches deployment of the Guix Data Service, these tables look like they might benefit from vacuuming/analyzing more often, so adjust the configuration so this will hopefully happen.
This commit is contained in:
parent
c05a8e4e9f
commit
6e0e33addf
4 changed files with 35 additions and 0 deletions
20
sqitch/deploy/change_autovacuum_config.sql
Normal file
20
sqitch/deploy/change_autovacuum_config.sql
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
-- Deploy guix-data-service:change_autovacuum_config to pg
|
||||
|
||||
BEGIN;
|
||||
|
||||
ALTER TABLE derivations SET (autovacuum_vacuum_scale_factor = 0.01);
|
||||
ALTER TABLE derivations SET (autovacuum_analyze_scale_factor = 0.01);
|
||||
|
||||
ALTER TABLE derivation_inputs SET (autovacuum_vacuum_scale_factor = 0.01);
|
||||
ALTER TABLE derivation_inputs SET (autovacuum_analyze_scale_factor = 0.01);
|
||||
|
||||
ALTER TABLE guix_revision_package_derivations SET (autovacuum_vacuum_scale_factor = 0.01);
|
||||
ALTER TABLE guix_revision_package_derivations SET (autovacuum_analyze_scale_factor = 0.01);
|
||||
|
||||
ALTER TABLE derivation_sources SET (autovacuum_vacuum_scale_factor = 0.01);
|
||||
ALTER TABLE derivation_sources SET (autovacuum_analyze_scale_factor = 0.01);
|
||||
|
||||
ALTER TABLE derivation_outputs SET (autovacuum_vacuum_scale_factor = 0.01);
|
||||
ALTER TABLE derivation_outputs SET (autovacuum_analyze_scale_factor = 0.01);
|
||||
|
||||
COMMIT;
|
||||
7
sqitch/revert/change_autovacuum_config.sql
Normal file
7
sqitch/revert/change_autovacuum_config.sql
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
-- Revert guix-data-service:change_autovacuum_config from pg
|
||||
|
||||
BEGIN;
|
||||
|
||||
-- XXX Add DDLs here.
|
||||
|
||||
COMMIT;
|
||||
|
|
@ -69,3 +69,4 @@ derivation_output_details_sets_derivation_output_details_ids_index 2020-07-04T07
|
|||
add-tsvectors-per-locale 2020-07-16T18:19:44Z daniela <daniela@linux-ijv5> # Add tsvectors per locale
|
||||
change_package_descriptions_index 2020-08-23T11:56:00Z Christopher Baines <mail@cbaines.net> # Change the package_descriptions index
|
||||
change_locale_values 2020-09-26T10:20:22Z Christopher Baines <mail@cbaines.net> # Change locale values
|
||||
change_autovacuum_config 2020-10-01T21:24:46Z Christopher Baines <mail@cbaines.net> # Change autovacuum config
|
||||
|
|
|
|||
7
sqitch/verify/change_autovacuum_config.sql
Normal file
7
sqitch/verify/change_autovacuum_config.sql
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
-- Verify guix-data-service:change_autovacuum_config on pg
|
||||
|
||||
BEGIN;
|
||||
|
||||
-- XXX Add verifications here.
|
||||
|
||||
ROLLBACK;
|
||||
Loading…
Add table
Add a link
Reference in a new issue