forked from MarseyWorld/MarseyWorld
print blocking query
parent
dc5c746e15
commit
1a0c981510
|
@ -0,0 +1 @@
|
||||||
|
psql "$DATABASE_URL" -c "SELECT activity.query AS blocked_query, blocking.query AS blocking_query FROM pg_stat_activity AS activity JOIN pg_stat_activity AS blocking ON blocking.pid = ANY(pg_blocking_pids(activity.pid));";
|
Loading…
Reference in New Issue