Skip to content

Commit

Permalink
Merge pull request #1 from christoudias/master
Browse files Browse the repository at this point in the history
use application name instead of username in pghero connection stats
  • Loading branch information
jeffdoering authored May 3, 2019
2 parents adb7dc5 + 99829a3 commit 9c34720
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/pghero/methods/connections.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,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
Expand Down
2 changes: 1 addition & 1 deletion lib/pghero/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module PgHero
VERSION = "2.2.9"
VERSION = "2.3.0"
end

0 comments on commit 9c34720

Please sign in to comment.