From e73f8713812b912b3b0244e99b6a18b9422a2d4d Mon Sep 17 00:00:00 2001 From: Sanad Liaquat Date: Fri, 15 Mar 2019 11:52:39 +0500 Subject: Add Load testing script for artillery.io Also add rake tasks that makes use of existing performance data genertion task. --- lib/gitlab/database.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/gitlab/database.rb b/lib/gitlab/database.rb index e2637ad602a..b6ca777e029 100644 --- a/lib/gitlab/database.rb +++ b/lib/gitlab/database.rb @@ -76,7 +76,7 @@ module Gitlab postgresql? && version.to_f >= 9.4 end - def self.postgresql_minimum_supported_version? + def self.pg_stat_wal_receiver_supported? postgresql? && version.to_f >= 9.6 end @@ -98,10 +98,6 @@ module Gitlab Gitlab::Database.postgresql_9_or_less? ? 'pg_last_xlog_replay_location' : 'pg_last_wal_replay_lsn' end - def self.pg_last_xact_replay_timestamp - 'pg_last_xact_replay_timestamp' - end - def self.nulls_last_order(field, direction = 'ASC') order = "#{field} #{direction}" -- cgit v1.2.1