diff --git a/lib/pghero/methods/connections.rb b/lib/pghero/methods/connections.rb index c7bb2ede4..d83fdc330 100644 --- a/lib/pghero/methods/connections.rb +++ b/lib/pghero/methods/connections.rb @@ -48,7 +48,7 @@ def connection_sources_by_user select_all <<-SQL SELECT datname AS database, - usename AS user, + application_name AS user, COUNT(*) AS total_connections FROM pg_stat_activity diff --git a/lib/pghero/version.rb b/lib/pghero/version.rb index a29e75677..f31926547 100644 --- a/lib/pghero/version.rb +++ b/lib/pghero/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module PgHero - VERSION = '2.2.9.0.1' # TODO: review - extended version since this is a fork of the public Gem + VERSION = '2.3.0.1' end