How to terminate PostgreSQL sessions

Recently, I have encountered an interesting issue, as I could not perform specific database operations due to unwanted and active sessions using the database. Thus, I will briefly note the solution for further reference. Prerequisites This blog post is based on a Debian Wheezy and PostgreSQL 9.1 version. $ lsb_release -d Description: Debian GNU/Linux 7.5 … Continue reading How to terminate PostgreSQL sessions