In this chapter, we will cover the following recipes:
- Providing PostgreSQL information to monitoring tools
 - Real-time viewing using pgAdmin or OmniDB
 - Checking whether a user is connected
 - Checking whether a computer is connected
 - Repeatedly executing a query in psql
 - Checking which queries are running
 - Checking which queries are active or blocked
 - Knowing who is blocking a query
 - Killing a specific session
 - Detecting an in-doubt prepared transaction
 - Knowing whether anybody is using a specific table
 - Knowing when a table was last used
 - Usage of disk space by temporary data
 - Understanding why queries slow down
 - Investigating and reporting a bug
 - Producing a daily summary of log file errors
 - Analyzing the real-time performance of your queries