From 99829a3cb5af4ad3edf15f723bbca6f8e921055c Mon Sep 17 00:00:00 2001 From: Christos Christoudias Date: Wed, 24 Apr 2019 20:33:43 -0700 Subject: [PATCH] use application name instead of username in pghero connection stats --- lib/pghero/methods/connections.rb | 2 +- lib/pghero/version.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pghero/methods/connections.rb b/lib/pghero/methods/connections.rb index d6070105e..e6ae86120 100644 --- a/lib/pghero/methods/connections.rb +++ b/lib/pghero/methods/connections.rb @@ -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 diff --git a/lib/pghero/version.rb b/lib/pghero/version.rb index 4f15cc953..b0a5ce0e8 100644 --- a/lib/pghero/version.rb +++ b/lib/pghero/version.rb @@ -1,3 +1,3 @@ module PgHero - VERSION = "2.2.9" + VERSION = "2.3.0" end