postgres admin queries

Some helpful postgres admin queries.