From d83f9ebddd481eb6a2557e1f19374484e66b2e4a Mon Sep 17 00:00:00 2001 From: Maxime Orefice Date: Wed, 7 May 2025 10:22:38 +0200 Subject: [PATCH] Exclude static partitions from TableSize --- docker/gitlab/table_size.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/gitlab/table_size.rb b/docker/gitlab/table_size.rb index 56d1e152..b32a5235 100644 --- a/docker/gitlab/table_size.rb +++ b/docker/gitlab/table_size.rb @@ -55,6 +55,7 @@ end class TableSize DYNAMIC_SCHEMA = 'gitlab_partitions_dynamic' + STATIC_SCHEMA = 'gitlab_partitions_static' def initialize(connection) @connection = connection @@ -63,7 +64,7 @@ class TableSize def run Gitlab::Database::PostgresTableSize .alerting - .where.not(schema_name: DYNAMIC_SCHEMA) + .where.not(schema_name: [DYNAMIC_SCHEMA, STATIC_SCHEMA]) end end -- GitLab