lib/pghero/methods/kill.rb in pghero-1.3.2 vs lib/pghero/methods/kill.rb in pghero-1.4.0

- old
+ new

@@ -1,9 +1,9 @@ module PgHero module Methods module Kill def kill(pid) - execute("SELECT pg_terminate_backend(#{pid.to_i})").first["pg_terminate_backend"] == "t" + truthy? execute("SELECT pg_terminate_backend(#{pid.to_i})").first["pg_terminate_backend"] end def kill_long_running_queries long_running_queries.each { |query| kill(query["pid"]) } true