title: How to list active connections on PostgreSQL?
body: <p>Is there a command in PostgreSQL to select active connections to a given database?</p>
  
  <p><code>psql</code> states that I can't drop one of my databases because there are <strong>active connections to it</strong>, so I would like to see what the connections are (and from which machines)</p>