Useful SQL Queries

Utility queries useful for debugging and gathering information from your Postgres database.