PostgreSQL pg_stat_activity
What is pg_stat_activity? pg_stat_activity is a PostgreSQL system view that is a good first place to start when you want to find out what is going on with your PostgreSQL installation. Aside 1 If you need to make a connection to a PostgreSQL installation, a good first place to start is username postgres dbname postgres Any default PostgreSQL install will have both this user and database. Tool makers know this convention, and design tools that connect using these defaults. http://www.postgresql.org/docs/9.4/interactive/creating-cluster.html Aside 2 Here's how you list all the databases in a PostgreSQL cluster: mwood@mwod-ThinkPad-X220:~$ psql -U postgres -l List of databases ┌───────────┬──────────┬──────────┬─────────┬───────┬───────────────────────┐ │ Name │ Owner │ Encoding │ Collate │ Ctype │ Access privileges │ ├───────────┼──────────┼──────────┼─────────┼───────┼───────────────────────┤ │ postgres │ postgre...