title: How to drop a PostgreSQL database if there are active connections to it?
body: <p>I need to write a script that will drop a PostgreSQL database. There may be a lot of connections to it, but the script should ignore that.</p>
  
  <p>The standard <code>DROP DATABASE db_name</code> query doesn't work when there are open connections. </p>
  
  <p>How can I solve the problem?</p>