
Databases
How to Kill Long Running Queries From the Shell Step by Step
Kill long running queries from the shell: find them in pg_stat_activity or the MySQL process list, cancel before terminate and prevent repeats.
7 min read
Tag
2 posts

Kill long running queries from the shell: find them in pg_stat_activity or the MySQL process list, cancel before terminate and prevent repeats.

Handle SIGINT and SIGTERM in Python scripts: stop a loop cleanly, run cleanup with try and finally, use atexit, and know which signals cannot be caught.