diff --git a/CHANGELOG.md b/CHANGELOG.md index 225a024ad..f5a0d1245 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.7.5 (unreleased) + +- No longer show walsender in long running queries + ## 2.7.4 (2021-02-01) - Fixed error on redirect with Ruby 3 diff --git a/app/controllers/pg_hero/home_controller.rb b/app/controllers/pg_hero/home_controller.rb index c155608c7..035b47fd1 100644 --- a/app/controllers/pg_hero/home_controller.rb +++ b/app/controllers/pg_hero/home_controller.rb @@ -34,8 +34,8 @@ def index @inactive_replication_slots = @database.replication_slots.select { |r| !r[:active] } end - @walsender_queries, @long_running_queries_array = @database.long_running_queries.partition { |q| q[:backend_type]=="walsender"} - @autovacuum_queries, @long_running_queries = @long_running_queries_array.partition { |q| q[:query].starts_with?("autovacuum:") } + @walsender_queries, @long_running_queries = @database.long_running_queries.partition { |q| q[:backend_type] == "walsender" } + @autovacuum_queries, @long_running_queries = @long_running_queries.partition { |q| q[:query].starts_with?("autovacuum:") } connection_states = @database.connection_states @total_connections = connection_states.values.sum