Guest User

Untitled

a guest
Aug 17th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. -- активные запросы
  2. select pid, trim(user_name), starttime, query
  3. from stv_recents
  4. where status='Running' order by starttime;
  5.  
  6. -- блокировки
  7. select *
  8. from admin.v_check_transaction_locks
  9. order by pid;
  10.  
  11. -- убить бэкенд
  12. select pg_terminate_backend(pid);
Add Comment
Please, Sign In to add comment