When your query hangs - aavedula/how-to-notes GitHub Wiki

  • To see what is running, use:
rake pg:active_queries
  • To kill the query, use:
rake pg:kill_pids[pid1,pid2,...]

Note: Don't put spaces between the pids.