aboutsummaryrefslogtreecommitdiff
path: root/sqitch/deploy
diff options
context:
space:
mode:
Diffstat (limited to 'sqitch/deploy')
-rw-r--r--sqitch/deploy/increase_derivation_inputs_statistics_targets.sql8
1 files changed, 8 insertions, 0 deletions
diff --git a/sqitch/deploy/increase_derivation_inputs_statistics_targets.sql b/sqitch/deploy/increase_derivation_inputs_statistics_targets.sql
new file mode 100644
index 0000000..e0da041
--- /dev/null
+++ b/sqitch/deploy/increase_derivation_inputs_statistics_targets.sql
@@ -0,0 +1,8 @@
+-- Deploy guix-data-service:increase_derivation_inputs_statistics_targets to pg
+
+BEGIN;
+
+ALTER TABLE derivation_inputs ALTER COLUMN derivation_id SET STATISTICS 10000;
+ALTER TABLE derivation_inputs ALTER COLUMN derivation_output_id SET STATISTICS 10000;
+
+COMMIT;