Skip to content
Snippets Groups Projects
Unverified Commit 40a23c31 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

Script to detect stuck queries

parent 5b56118d
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
exec psql -t -q -d turris -c "SELECT * FROM pg_stat_activity WHERE waiting AND NOW() - state_change > INTERVAL '2 hours'" | grep -e '.'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment