PSQL: List Connections To A Database
Using the pg_stat_activity table
PSQL: List Connections To A Database
Using the pg_stat_activity table
PSQL: Sleeping
Using the pg_sleep function
PSQL: Get The Size Of An Index
Using the pg_size_pretty and pg_relation_size functions
PSQL: Restore a database
Using the pg_restore function
PSQL: Get The Size Of A Table
Using the pg_relation_size function