<% queries.reverse.each do |query| %> <% end %>
Pid Duration State
<%= query[:pid] %> <%= number_with_delimiter(query[:duration_ms].round) %> ms <%= query[:state] %> <% if vacuum_progress[query[:pid]] %>
<%= vacuum_progress[query[:pid]][:phase] %> <% end %>
<%= button_to "Explain", explain_path, params: {query: query[:query]}, form: {target: "_blank"}, class: "btn btn-info" %> <%= button_to "Kill", kill_path(pid: query[:pid]), class: "btn btn-danger" %>
<%= query[:source] %> <%= query[:user] %>
<%= query[:query] %>