summaryrefslogtreecommitdiff
path: root/lib/gitlab/sherlock/query.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/sherlock/query.rb')
-rw-r--r--lib/gitlab/sherlock/query.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/gitlab/sherlock/query.rb b/lib/gitlab/sherlock/query.rb
index 159ce27e702..cbd89b7629f 100644
--- a/lib/gitlab/sherlock/query.rb
+++ b/lib/gitlab/sherlock/query.rb
@@ -96,12 +96,7 @@ module Gitlab
private
def raw_explain(query)
- explain =
- if Gitlab::Database.postgresql?
- "EXPLAIN ANALYZE #{query};"
- else
- "EXPLAIN #{query};"
- end
+ explain = "EXPLAIN ANALYZE #{query};"
ActiveRecord::Base.connection.execute(explain)
end