https://stackoverflow.com/questions/2369744/rails-postgres-drop-error-database-is-being-accessed-by-other-users
Related Posts
How to non interactively provide password for the PostgreSQL interactive terminal
Loop on tables with PL/pgSQL in Postgres 9.0+
How To Delete Duplicate Rows in PostgreSQL
PostgreSQL ODBC Driver (psqlODBC) connection strings
PostgreSQL – max_locks_per_transaction
Conditional string concatenation in PostgreSQL