-- Check database connections SELECT application_name, client_addr from pg_stat_activity;