In postgresql each connections are spawning as a process under the root process tree of Linux systems. This project allows you to pickup your long running or huge resource consuming queries (you can pick the queries with any of the queries from pg_activity table) then easily migrate PID's given cgroup via REST API. I hope it would be a usefull projects by sysadmins, dba and SRE membershttps://github.com/WoodProgrammer/postgresql-connection-manager