SELECT usename, application_name, client_addr, client_hostname,
NOW() - query_start as s, procpid, current_query, 'pg_ctl kill TERM '||procpid
FROM pg_stat_activity
WHERE current_query NOT IN ('','
ORDER BY s DESC;
pg_ctl kill TERM сюда_вставить_procid
Комментариев нет:
Отправить комментарий