Cannot remove idle connections to a Postgres database
It seems there is an always-running program that reconnects to this database as soon as it's disconnected.

Before terminating the connections, you might prevent this from happening again with:

REVOKE CONNECT ON DATABASE mydb FROM public, myname;