Kill Session

Da wiki.gienne.cloud.

Ricerca:

select datid, datname, pid from pg_stat_activity;

DESC:

\d pg_stat_activity ;

Kil:

SELECT
   pg_terminate_backend(537)
FROM
   pg_stat_activity
WHERE
  pid <> pg_backend_pid()
   AND datname = 'Pippo';