summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSanad Liaquat <sliaquat@gitlab.com>2019-03-15 11:52:39 +0500
committerSanad Liaquat <sliaquat@gitlab.com>2019-03-15 11:52:39 +0500
commite73f8713812b912b3b0244e99b6a18b9422a2d4d (patch)
treede67e0ab7931961752caeccef78f393365391f81 /lib
parent82c0816d3fdd96412605845fa337b74b6a3534c4 (diff)
downloadgitlab-ce-qa-artillery-io-script.tar.gz
Add Load testing script for artillery.ioqa-artillery-io-script
Also add rake tasks that makes use of existing performance data genertion task.
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/database.rb6
1 files changed, 1 insertions, 5 deletions
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}"