lib/pghero/methods/kill.rb in pghero-1.2.4 vs lib/pghero/methods/kill.rb in pghero-1.3.0
- old
+ new
@@ -17,9 +17,10 @@
FROM
pg_stat_activity
WHERE
pid <> pg_backend_pid()
AND query <> '<insufficient privilege>'
+ AND datname = current_database()
SQL
true
end
end
end