PSQL: Terminating A Connection
Using the pg_terminate_backend command
PSQL: Terminating A Connection
Using the pg_terminate_backend command
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