open postgres to all connections code example Example: check connections to database postgres Click to copySELECT * FROM pg_stat_activity WHERE datname='db_name';