PSQL убить пид
select pg_terminate_backend(pid)
from pg_stat_activity
where pid = '18765';
Cerbrain
select pg_terminate_backend(pid)
from pg_stat_activity
where pid = '18765';