PSQL Mate Pid

select pg_terminate_backend(pid) 
from pg_stat_activity 
where pid = '18765';
Cerbrain